From 6e55856830477bbd8283981d5d7f16bfd3a9222f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 2 Oct 2018 10:58:40 +0200 Subject: [PATCH] fuzzing: Add -lm to LDFLAGS if the coverage sanitizer is used libFuzzer apparently uses math functions (e.g. ceilf) for that sanitizer. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 673393f8d..1ef437389 100644 --- a/configure.ac +++ b/configure.ac @@ -1292,6 +1292,9 @@ if test x$fuzzing = xtrue; then else # required for libFuzzer FUZZING_LDFLAGS="-stdlib=libc++ -lstdc++" + if test "$SANITIZER" = "coverage"; then + FUZZING_LDFLAGS="$FUZZING_LDFLAGS -lm" + fi AC_SUBST(FUZZING_LDFLAGS) fi fi