diff options
author | Niels de Vos <ndevos@redhat.com> | 2018-08-10 01:32:22 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-09-11 04:20:13 +0000 |
commit | 0e399b9e4623a68eb681f8c3c5c45e05048a96e8 (patch) | |
tree | 0f95d67c044f528894d00c5d109ad1d08be7e678 /configure.ac | |
parent | ee79077c0d19ddf97caea22cc001b6f4f9b0829c (diff) |
rpm: add "--with asan" build option
RHEL-6 does not have libasan, enabling the "--with asan" option is a
no-op there.
RHEL-7 has an earlier version of libasan, and that does not have the
__asan_init symbol. Test for __asan_report_error in confiure.as instead.
Change-Id: I6322e832c5cfbd7d750f5c32c84c28771674ced6
Updates: #492
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3fc22254a42..ec4095df7b9 100644 --- a/configure.ac +++ b/configure.ac @@ -323,7 +323,7 @@ AC_ARG_ENABLE([asan], [Enable Address Sanitizer support])) if test "x$enable_asan" = "xyes"; then BUILD_ASAN=yes - AC_CHECK_LIB([asan], [__asan_init], , + AC_CHECK_LIB([asan], [__asan_report_error], , [AC_MSG_ERROR([libasan.so not found, this is required for --enable-asan])]) GF_CFLAGS="${GF_CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer" dnl -lasan always need to be the first library, otherwise libxml complains |