From 78a5a0fe36ed69fc76d9b81b0fa6d4b1d8fa596f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 15 Dec 2024 00:27:11 +0100 Subject: [PATCH] Fix looking for libclang_rt.fuzzer_no_main-*.a --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 615ed4414..c2ea3fa91 100644 --- a/configure.ac +++ b/configure.ac @@ -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)