From 5c78250d5e638d35ffe402a3be99f907df691513 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Thu, 7 Nov 2024 16:04:59 -0600 Subject: Actually use the libs passed --- test.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test.patch b/test.patch index 38728ef..f49ed9d 100644 --- a/test.patch +++ b/test.patch @@ -134,6 +134,20 @@ index 6a64836fb..6a82f1fa4 100644 #endif #if ENABLE_FEATURE_WGET_HTTPS +diff --git a/scripts/trylink b/scripts/trylink +index 2456252a3..6186284f1 100755 +--- a/scripts/trylink ++++ b/scripts/trylink +@@ -84,7 +84,8 @@ A_FILES="$6" + # a real utmp library in LDLIBS, dropping it "works" but resulting binary + # does not work properly). + LDLIBS="$7" +-CONFIG_EXTRA_LDLIBS="$8" ++shift 7 ++CONFIG_EXTRA_LDLIBS="$@" + + # The --sort-section option is not supported by older versions of ld + SORT_SECTION="-Wl,--sort-section,alignment" diff --git a/win32/mingw.c b/win32/mingw.c index 87e7ca602..7bad3e4fa 100644 --- a/win32/mingw.c -- cgit v1.2.3-55-g6feb