Skip to content

Commit

Permalink
fuzzing: Add -lm to LDFLAGS if the coverage sanitizer is used
Browse files Browse the repository at this point in the history
libFuzzer apparently uses math functions (e.g. ceilf) for that sanitizer.
  • Loading branch information
tobiasbrunner committed Oct 2, 2018
1 parent 4a33dcf commit 6e55856
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -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
Expand Down

0 comments on commit 6e55856

Please sign in to comment.