aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libmagic/0002-Change-zlib-lib-name-to-match-CMake-output.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libmagic/0002-Change-zlib-lib-name-to-match-CMake-output.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libmagic/0002-Change-zlib-lib-name-to-match-CMake-output.patch')
-rw-r--r--vcpkg/ports/libmagic/0002-Change-zlib-lib-name-to-match-CMake-output.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/libmagic/0002-Change-zlib-lib-name-to-match-CMake-output.patch b/vcpkg/ports/libmagic/0002-Change-zlib-lib-name-to-match-CMake-output.patch
new file mode 100644
index 0000000..e70c202
--- /dev/null
+++ b/vcpkg/ports/libmagic/0002-Change-zlib-lib-name-to-match-CMake-output.patch
@@ -0,0 +1,39 @@
+From 2fa43ece9ec7564e1fbb9867bb5852b834643aa4 Mon Sep 17 00:00:00 2001
+From: Long Nguyen <nguyen.long.908132@gmail.com>
+Date: Sat, 8 May 2021 19:36:11 +0700
+Subject: [PATCH 02/14] Change zlib lib name to match CMake output
+
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index b05c334..dd4063c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -173,7 +173,7 @@ AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r
+
+ dnl Checks for libraries
+ if test "$enable_zlib" != "no"; then
+- AC_CHECK_LIB(z, gzopen)
++ AC_SEARCH_LIBS(gzopen, [z zlib zlibd], have_zlib="yes", have_zlib="no")
+ fi
+ if test "$enable_bzlib" != "no"; then
+ AC_CHECK_LIB(bz2, BZ2_bzCompressInit)
+@@ -193,11 +193,11 @@ AM_CONDITIONAL(IS_CROSS_COMPILE, test "$cross_compiling" = yes)
+
+ dnl Final sanity checks
+ if test "$enable_zlib" = "yes"; then
+- if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
++ if test "$ac_cv_header_zlib_h$have_zlib" != "yesyes"; then
+ AC_MSG_ERROR([zlib support requested but not found])
+ fi
+ fi
+-if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
++if test "$ac_cv_header_zlib_h$have_zlib" = "yesyes"; then
+ AC_DEFINE([ZLIBSUPPORT], 1, [Enable zlib compression support])
+ fi
+ if test "$enable_bzlib" = "yes"; then
+--
+2.29.2.windows.2
+