diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-03 16:52:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-03 16:52:38 +0300 |
commit | df98280e54cc199f3ff93cba848be1911ec9b8d9 (patch) | |
tree | f5712e1cd996c4ca9c45534bd09b53aee780d7a5 /configure.in | |
parent | 18c113350a4ac9c712f81b1143269ee7f678ea6c (diff) | |
download | hercules-df98280e54cc199f3ff93cba848be1911ec9b8d9.tar.gz hercules-df98280e54cc199f3ff93cba848be1911ec9b8d9.tar.bz2 hercules-df98280e54cc199f3ff93cba848be1911ec9b8d9.tar.xz hercules-df98280e54cc199f3ff93cba848be1911ec9b8d9.zip |
Add sanity into LDFLAGS also.
Fix small typo.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in index f8a3fa639..9497ce6bc 100644 --- a/configure.in +++ b/configure.in @@ -627,6 +627,8 @@ AC_DEFUN(AC_CHECK_SANITIZER_FLAG, AC_MSG_CHECKING([whether $CC supports -fsanitize=$1]) OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fsanitize=$1" + OLD_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -fsanitize=$1" AC_COMPILE_IFELSE( [AC_LANG_SOURCE([int foo;])], [ @@ -645,12 +647,14 @@ AC_DEFUN(AC_CHECK_SANITIZER_FLAG, [ AC_MSG_RESULT([no]) CFLAGS="$OLD_CFLAGS" + LDFLAGS="$OLD_LDFLAGS" ] ) ], [ AC_MSG_RESULT([guessing no]) CFLAGS="$OLD_CFLAGS" + LDFLAGS="$OLD_LDFLAGS" ] ) ] @@ -677,7 +681,7 @@ if test "$enable_sanitize" != "no" ; then AC_CHECK_SANITIZER_FLAG(nonnull-attribute) AC_CHECK_SANITIZER_FLAG(returns-nonnull-attribute) AC_CHECK_SANITIZER_FLAG(bool) - AC_CHECK_SANITIZER_FLAG(enum, sanitize-undefined-trap-on-error) + AC_CHECK_SANITIZER_FLAG(enum) AC_CHECK_SANITIZER_FLAG(vptr) fi fi |