Skip to content

Commit

Permalink
Merge a8506a3 into 1f1548b
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Colvin committed Feb 1, 2016
2 parents 1f1548b + a8506a3 commit feb9dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ if [[ $VERSION < 2.069.0 ]]; then
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

Expand Down

0 comments on commit feb9dd5

Please sign in to comment.