aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/python2/008-bz2d.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/python2/008-bz2d.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/python2/008-bz2d.patch')
-rw-r--r--vcpkg/ports/python2/008-bz2d.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/python2/008-bz2d.patch b/vcpkg/ports/python2/008-bz2d.patch
new file mode 100644
index 0000000..88ec740
--- /dev/null
+++ b/vcpkg/ports/python2/008-bz2d.patch
@@ -0,0 +1,19 @@
+diff --git a/setup.py b/setup.py
+index f764223..d6a58e4 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1506,6 +1506,14 @@ class PyBuildExt(build_ext):
+ exts.append( Extension('bz2', ['bz2module.c'],
+ libraries = ['bz2'],
+ extra_link_args = bz2_extra_link_args) )
++ elif (self.compiler.find_library_file(lib_dirs, 'bz2d')):
++ if host_platform == "darwin":
++ bz2_extra_link_args = ('-Wl,-search_paths_first',)
++ else:
++ bz2_extra_link_args = ()
++ exts.append( Extension('bz2', ['bz2module.c'],
++ libraries=['bz2d'],
++ extra_link_args = bz2_extra_link_args) )
+ else:
+ missing.append('bz2')
+