Skip to content

Commit

Permalink
Improve the version-based addition of compiler flags of the Blaze 'co…
Browse files Browse the repository at this point in the history
…nfigure' script
  • Loading branch information
igl42 committed Mar 10, 2014
1 parent f554074 commit a3353b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,13 @@ DOCDIR="\$(INSTALL_PATH)/doc"
# Generating the Makefile

if test $VERSION = "debug"; then
CXXFLAGS="$CXXFLAGS -g"
if [[ ! "$CXXFLAGS" =~ "-g" ]]; then
CXXFLAGS="$CXXFLAGS -g"
fi
else
CXXFLAGS="$CXXFLAGS -DNDEBUG"
if [[ ! "$CXXFLAGS" =~ "-DNDEBUG" ]]; then
CXXFLAGS="$CXXFLAGS -DNDEBUG"
fi
fi
if test $LIBRARY = "shared" || test $LIBRARY = "both"; then
CXXFLAGS="$CXXFLAGS -fPIC"
Expand Down

0 comments on commit a3353b9

Please sign in to comment.