Skip to content

Commit 7317c6e

Browse files
committed
Fix install_name_tool
1 parent 983f61f commit 7317c6e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ddnet-lib-update.sh

+6
Original file line numberDiff line numberDiff line change
@@ -532,5 +532,11 @@ cp .libs/libpng16.16.dylib ..
532532
mkdir libfat; for i in lib64/*.dylib; do lipo -create $i libarm64/${i:t} -output libfat/${i:t}; done
533533
mkdir libfat; for i in lib64/*.a; do lipo -create $i libarm64/${i:t} -output libfat/${i:t}; done
534534

535+
# Fix output paths in shared libs
536+
otool -L $i
537+
install_name_tool -id ...
538+
install_name_tool -change ...
539+
# TODO: Can this be done automatically by setting --prefix=@rpath?
540+
535541
# sign all arm64 and fat dylibs using codesign on macOS (until https://github.com/thefloweringash/sigtool/issues/8 is fixed, then we can automate it on Linux)
536542
for i in **/libarm64/*.dylib **/libfat/*.dylib mac/libarm64/SDL2.framework mac/libfat/SDL2.framework; do codesign -s - $i; done

0 commit comments

Comments
 (0)