diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-09-10 14:50:24 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-09-10 14:52:21 +0200 |
commit | 3e9c071aa66d2a7f7465c4cac229f205d2dbecdd (patch) | |
tree | cf0c10d4e65ba334acaf5a07400f04ec144da2b5 /configure.ac | |
parent | e63c72acfb7eafd3da46dce7884f1b6c2a974986 (diff) |
configure.ac: Set CXXFLAGS during --enable-sanitize
For some unknown reason ld was failing to find some asan symbols until I
enabled asan too in CXXFLAGS.
Change-Id: I695314b284277674dc336b40765313a37d238d6e
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 69e0775c..7288c24e 100644 --- a/configure.ac +++ b/configure.ac @@ -41,6 +41,7 @@ AC_ARG_ENABLE(sanitize, if test x"$sanitize" = x"yes" then CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined" + CXXFLAGS="$CXXFLAGS -fsanitize=address -fsanitize=undefined" CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined" LDFLAGS="$LDFLAGS -fsanitize=address -fsanitize=undefined" fi @@ -156,8 +157,10 @@ AM_CONDITIONAL(ENABLE_VTY_TESTS, test "x$enable_vty_tests" = "xyes") STD_DEFINES_AND_INCLUDES="-Wall" AC_SUBST(STD_DEFINES_AND_INCLUDES) -AC_MSG_RESULT([CFLAGS="$CFLAGS"]) AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"]) +AC_MSG_RESULT([CFLAGS="$CFLAGS"]) +AC_MSG_RESULT([CXXFLAGS="$CXXFLAGS"]) +AC_MSG_RESULT([LDFLAGS="$LDFLAGS"]) AC_OUTPUT( osmo-pcu.pc |