diff --git a/build.sh b/build.sh index d147555..80a6d90 100755 --- a/build.sh +++ b/build.sh @@ -18,6 +18,8 @@ # fix for modern GCC versions with --as-needed by default if [ "$DC" = "dmd" ]; then LIBS="-lphobos2 $LIBS" +elif [ "$DC" = "ldmd2" ]; then + LIBS="-lphobos-ldc $LIBS" fi # adjust linker flags for dmd command line