From cb294209f868a821835c7605c752f56f264a182a Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Thu, 12 Nov 2026 13:33:27 -0800 Subject: [PATCH] Avoid hard-coding the name of zlib. This was detected by GPT 6.1 Sol in https://github.com/microsoft/vcpkg/pull/54958 ; zlib changed their names. --- SConstruct | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index f9eea5e..e3775b5 100644 --- a/SConstruct +++ b/SConstruct @@ -426,7 +426,7 @@ if aprstatic: env.Append(CPPDEFINES=['APR_DECLARE_STATIC', 'APU_DECLARE_STATIC']) # Prepare lists for the pkg-config file -pc_requires = ['libssl', 'libcrypto'] +pc_requires = ['libssl', 'libcrypto', 'zlib'] pc_cppflags = [] pc_private_libs = [] win_std_libs = [] @@ -598,7 +598,6 @@ else: env.Append(LIBPATH=['$ZLIB/lib']) if env.subst('$ZLIB') not in ('', '/usr'): pc_private_libs.append('-L$ZLIB/lib') - pc_private_libs.append('-lz') # MacOS ships ancient OpenSSL libraries, but no headers, so we can # assume we're building with an OpenSSL installed outside the