#!/bin/sh
LIBS=`pkg-config --libs libcurl 2>/dev/null || echo "-lcurl"`
LIBS=`echo "$LIBS" | sed 's/^-L/-L-L/; s/ -L/ -L-L/g; s/^-l/-L-l/; s/ -l/ -L-l/g'`
rdmd --build-only -ofdub -g -debug -w -property -Isource $LIBS $* source/app.d
#!/bin/sh
LIBS=`pkg-config --libs libcurl 2>/dev/null || echo "-lcurl"`
LIBS=`echo "$LIBS" | sed 's/^-L/-L-L/; s/ -L/ -L-L/g; s/^-l/-L-l/; s/ -l/ -L-l/g'`

# HACK to work around (r)dmd placing -lcurl before the object files - which is wrong if --as-needed is used
# On newer Ubuntu versions this is the default, though
LIBS="-L--no-as-needed $LIBS"

rdmd --build-only -ofdub -g -debug -w -property -Isource $* $LIBS source/app.d

Add workaround to enable compilation on Ubuntu.
Add workaround to enable compilation on Ubuntu.
