From 3da29480b72a8e7d4ba6dbdfabe6f802f0c686b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henning=20P=C3=B6ttker?= <25299532+hpoettker@users.noreply.github.com> Date: Sun, 19 Apr 2026 14:27:51 +0200 Subject: [PATCH] Fix Windows pipeline --- configure.ac | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index b23e2b0..48ab08c 100644 --- a/configure.ac +++ b/configure.ac @@ -54,20 +54,15 @@ AS_CASE([$host], AC_SUBST([EXTRA_WARNINGS]) AS_CASE([$host], - [*mingw*|*cygwin*], [EXTRA_LDFLAGS="$LTLIBICONV -no-undefined"], - [EXTRA_LDFLAGS="$LTLIBICONV"]) + [*mingw*|*cygwin*], [EXTRA_LDFLAGS="-liconv -no-undefined"], + [EXTRA_LDFLAGS=""]) AC_SUBST([EXTRA_LDFLAGS]) AS_CASE([$host], - [*mingw*], - [ - #There is no real way to determine whether UCRT is used vs normal MINGW but one way is by checking a define in - #If we are in UCRT we do not want to set the spawnv define because it breaks the build - IS_UCRT=`echo '#include '| gcc -E -dM - | grep -i _UCRT | xargs` - AS_IF([test "$IS_UCRT" == ""], [ - CFLAGS="$CFLAGS -D_spawnv=spawnv" - ]) - ], + [*mingw*], + [ + AC_CHECK_FUNCS([_spawnv], [], [CFLAGS="$CFLAGS -D_spawnv=spawnv"]) + ], [CFLAGS="$CFLAGS"]) AC_ARG_VAR([LIB_FUZZING_ENGINE], [Location of prebuilt fuzzing engine library])