aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/htslib/0004-fix-find-htscodecs.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/htslib/0004-fix-find-htscodecs.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/htslib/0004-fix-find-htscodecs.patch')
-rw-r--r--vcpkg/ports/htslib/0004-fix-find-htscodecs.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/htslib/0004-fix-find-htscodecs.patch b/vcpkg/ports/htslib/0004-fix-find-htscodecs.patch
new file mode 100644
index 0000000..4fc6e2d
--- /dev/null
+++ b/vcpkg/ports/htslib/0004-fix-find-htscodecs.patch
@@ -0,0 +1,22 @@
+diff --git a/configure.ac b/configure.ac
+index 49f2cbc..434086f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -156,7 +156,7 @@ m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG], [PKG_CONFIG=""])
+ need_crypto=no
+ pc_requires=
+ static_LDFLAGS=$LDFLAGS
+-static_LIBS='-lpthread -lz -lm'
++static_LIBS='-pthread -lz -lm'
+ private_LIBS=$LDFLAGS
+
+ AC_ARG_ENABLE([versioned-symbols],
+@@ -404,7 +404,7 @@ AS_IF([test "x$with_external_htscodecs" != "xno"],
+ AC_CHECK_HEADER([htscodecs/rANS_static4x16.h],[],
+ [libhtscodecs='missing header'],[;])
+ AC_CHECK_LIB([htscodecs],[rans_compress_bound_4x16],
+- [:],[libhtscodecs='missing library'])
++ [:],[libhtscodecs='missing library'], ["$static_LIBS"])
+ AS_IF([test "$libhtscodecs" = "ok"],
+ [AC_DEFINE([HAVE_EXTERNAL_LIBHTSCODECS], 1, [Define if using an external libhtscodecs])
+ LIBS="-lhtscodecs $LIBS"