summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2018-07-23 17:34:10 (GMT)
committerChristian Pointner <equinox@anytun.org>2018-07-23 17:34:10 (GMT)
commite81d828271936aead763d3c4401c5ae4681c1c10 (patch)
tree6348fbd037706f641648da77b24a167224ae2fb2
parenta9b3f121565be972a06191d24fadba0f625a1a50 (diff)
honor external build flags
-rwxr-xr-xsrc/configure8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configure b/src/configure
index b8a7f3f..9cdce48 100755
--- a/src/configure
+++ b/src/configure
@@ -217,12 +217,12 @@ if [ -n "$ERRORS" ] && [ $EBUILD_COMPAT -ne 1 ]; then
fi
if [ $USE_CLANG -eq 0 ]; then
- CXXFLAGS='-g -Wall -Werror -Wno-error=unused-variable -O2'
- LDFLAGS='-g -Wall -Werror -O2'
+ CXXFLAGS=$CXXFLAGS' -g -Wall -Werror -Wno-error=unused-variable -O2'
+ LDFLAGS=$LDFLAGS' -g -Wall -Werror -O2'
COMPILER='g++'
else
- CXXFLAGS='-g -O2'
- LDFLAGS='-g -O2'
+ CXXFLAGS=$CXXFLAGS' -g -O2'
+ LDFLAGS=$LDFLAGS' -g -O2'
COMPILER='clang++'
fi