Fix sanitizer build

Add sanitizer flags to linker as well to resolve linker error.

Change-Id: I695baaf8ce78ed938f6f71c40d17120fa690338b
This commit is contained in:
Max 2018-01-14 22:17:10 +01:00
parent 71affcedba
commit 2141962baf
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ if test x"$sanitize" = x"yes"
then
CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined"
CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined"
LDFLAGS="$LDFLAGS -fsanitize=address -fsanitize=undefined"
fi
AC_ARG_ENABLE(profile,