diff --git a/build.sh b/build.sh index fb9ea13..270caee 100755 --- a/build.sh +++ b/build.sh @@ -1,2 +1,4 @@ #!/bin/sh -rdmd --build-only -ofdub -g -debug -Isource -L-lcurl $* source/app.d +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 -Isource $LIBS $* source/app.d \ No newline at end of file