File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ function build_zlib_ng {
7272 && ./configure --prefix=$BUILD_PREFIX --zlib-compat \
7373 && make -j4 \
7474 && make install)
75+
76+ if [ -n " $IS_MACOS " ]; then
77+ # Ensure that on macOS, the library name is an absolute path, not an
78+ # @rpath, so that delocate picks up the right library (and doesn't need
79+ # DYLD_LIBRARY_PATH to be set). The default Makefile doesn't have an
80+ # option to control the install_name.
81+ install_name_tool -id $BUILD_PREFIX /lib/libz.1.dylib $BUILD_PREFIX /lib/libz.1.dylib
82+ fi
7583 touch zlib-stamp
7684}
7785
Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ test-extras = "tests"
104104
105105[tool .cibuildwheel .macos .environment ]
106106PATH = " $(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin"
107- DYLD_LIBRARY_PATH = " $(pwd)/build/deps/darwin/lib"
108107
109108[tool .black ]
110109exclude = " wheels/multibuild"
You can’t perform that action at this time.
0 commit comments