diff --git a/build.sh b/build.sh index dce1766..e1f539e 100755 --- a/build.sh +++ b/build.sh @@ -17,7 +17,11 @@ # fix for modern GCC versions with --as-needed by default if [ "$DC" = "dmd" ]; then - LIBS="-l:libphobos2.a $LIBS" + if [ `uname` = "Linux" }; then + LIBS="-l:libphobos2.a $LIBS" + else + LIBS="-lphobos2 $LIBS" + fi elif [ "$DC" = "ldmd2" ]; then LIBS="-lphobos-ldc $LIBS" fi