File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ if [ "$1" = --x86-64 ]; then
3636fi
3737
3838if [ -z "$1" ]; then
39- echo "no command: launching interactive container" >&2
4039 INTERACTIVE="-it"
4140 CMD="/bin/bash"
4241else
Original file line number Diff line number Diff line change @@ -26,7 +26,14 @@ build:
2626
2727 - cp {{deps.zlib.net.prefix}}/lib/libz.dylib '{{prefix}}/lib'
2828
29- - run : install_name_tool -change @rpath/zlib.net/v{{deps.zlib.net.version}}/lib/libz.{{deps.zlib.net.version.marketing}}.dylib {{prefix}}/lib/libz.dylib fix-machos-test
29+ # linker prefers to choose shorter versions apparently
30+ - |
31+ if test {{deps.zlib.net.version.patch}} = 0; then
32+ ZLIB_VERSION={{deps.zlib.net.version.marketing}}
33+ else
34+ ZLIB_VERSION={{deps.zlib.net.version}}
35+ fi
36+ - run : install_name_tool -change @rpath/zlib.net/v{{deps.zlib.net.version}}/lib/libz.${ZLIB_VERSION}.dylib {{prefix}}/lib/libz.dylib fix-machos-test
3037 working-directory : ' {{prefix}}/bin'
3138
3239 - run : otool -l fix-machos-test
You can’t perform that action at this time.
0 commit comments