Skip to content

Commit aa0995f

Browse files
committed
Fix fix-macho fixture
1 parent 2396052 commit aa0995f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

bin/cmd/docker

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ if [ "$1" = --x86-64 ]; then
3636
fi
3737

3838
if [ -z "$1" ]; then
39-
echo "no command: launching interactive container" >&2
4039
INTERACTIVE="-it"
4140
CMD="/bin/bash"
4241
else

projects/fix-machos.com/package.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)