diff --git a/build.sh b/build.sh index 49e1d28..81823e2 100755 --- a/build.sh +++ b/build.sh @@ -30,7 +30,11 @@ LIBS="-lphobos2 $LIBS" fi elif [[ `$DMD --help | head -n1 | grep '^LDC '` ]]; then - LIBS="-lphobos2-ldc $LIBS" + if [ `uname` = "SunOS" ]; then + LIBS="-lnsl -lsocket -lphobos2-ldc $LIBS" + else + LIBS="-lphobos2-ldc $LIBS" + fi fi # adjust linker flags for dmd command line