Skip to content

Commit

Permalink
Fix looking for libclang_rt.fuzzer_no_main-*.a
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed Dec 14, 2024
1 parent ef9b255 commit 78a5a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ AS_IF([test "$CC" != "clang" || test "$CXX" != "clang++"], [with_fuzzer=no])
AS_IF([test "x$with_fuzzer" = "xyes"],
[
AC_MSG_RESULT([yes])
HOST_CPU="`$CC -print-multiarch | sed -e 's/-.*//'`"
HOST_CPU="`$CC -print-target-triple | sed -e 's/-.*//'`"
CFLAGS="$CFLAGS -fsanitize=fuzzer-no-link"
LIBFUZZER_NO_MAIN="`$CC $CFLAGS -print-runtime-dir`/libclang_rt.fuzzer_no_main-$HOST_CPU.a -lstdc++ -lm"
LIBFUZZER_NO_MAIN="`$CC $CFLAGS -print-file-name=/libclang_rt.fuzzer_no_main-$HOST_CPU.a` -lstdc++ -lm"
],
AC_MSG_RESULT([no]))
AC_SUBST(LIBFUZZER_NO_MAIN)
Expand Down

0 comments on commit 78a5a0f

Please sign in to comment.