diff --git a/build.sh b/build.sh index 62a72c9..f2c48ee 100755 --- a/build.sh +++ b/build.sh @@ -23,13 +23,13 @@ fi # fix for modern GCC versions with --as-needed by default -if [[ `$DMD --help | head -n1 | grep -P '^DMD(32|64) '` ]]; then +if [[ `$DMD --help | head -n1 | grep 'DMD\(32\|64\)'` ]]; then if [ `uname` = "Linux" ]; then LIBS="-l:libphobos2.a $LIBS" else LIBS="-lphobos2 $LIBS" fi -elif [[ `$DMD --help | head -n1 | grep -P '^LDC '` ]]; then +elif [[ `$DMD --help | head -n1 | grep '^LDC '` ]]; then LIBS="-lphobos2-ldc $LIBS" fi