Link asan in a clang-friendly way

This commit is contained in:
Ed Kellett 2020-01-10 15:32:35 +00:00
parent 6d17463554
commit 30a14c5884
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -622,7 +622,7 @@ AC_ARG_WITH(asan,
AC_HELP_STRING([--with-asan],[Build with Address Sanitizer]), AC_HELP_STRING([--with-asan],[Build with Address Sanitizer]),
[ [
CFLAGS="$CFLAGS -fsanitize=address" CFLAGS="$CFLAGS -fsanitize=address"
LDFLAGS="$LDFLAGS -lasan" LDFLAGS="$LDFLAGS -fsanitize=address"
]) ])
# rpath, for finding librb.so at run time # rpath, for finding librb.so at run time