From: Tobias Brunner Date: Tue, 2 Oct 2018 08:58:40 +0000 (+0200) Subject: fuzzing: Add -lm to LDFLAGS if the coverage sanitizer is used X-Git-Tag: 5.7.2dr1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e55856830477bbd8283981d5d7f16bfd3a9222f;p=thirdparty%2Fstrongswan.git fuzzing: Add -lm to LDFLAGS if the coverage sanitizer is used libFuzzer apparently uses math functions (e.g. ceilf) for that sanitizer. --- diff --git a/configure.ac b/configure.ac index 673393f8da..1ef437389a 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