configure: Omit fsanitize flags if they are already specified by the user

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-05-26 02:28:57 +02:00
parent 0263c52f4d
commit 1386a199f9

2
configure vendored
View File

@ -3942,7 +3942,7 @@ set >> $logfile
test -n "$valgrind" && toolchain="valgrind-memcheck"
enabled ossfuzz && {
enabled ossfuzz && ! echo $CFLAGS | grep -q -- "-fsanitize=" &&{
add_cflags -fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard,trace-cmp -fno-omit-frame-pointer
add_ldflags -fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard,trace-cmp
}