forked from MacIrssi/MacIrssi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib_path_fix.sh
executable file
·20 lines (14 loc) · 1.2 KB
/
lib_path_fix.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Fix so that the executable links against the bundled libraries
echo "Fixing library name paths"
LIBPATH=$SRCROOT/Frameworks/MILibs/build/Release/lib
#MacIrssi
install_name_tool -change $LIBPATH/libgmodule-2.0.0.dylib @executable_path/../Frameworks/libgmodule-2.0.0.dylib "$TARGET_BUILD_DIR/MacIrssi.app/Contents/MacOS/MacIrssi"
install_name_tool -change $LIBPATH/libglib-2.0.0.dylib @executable_path/../Frameworks/libglib-2.0.0.dylib "$TARGET_BUILD_DIR/MacIrssi.app/Contents/MacOS/MacIrssi"
install_name_tool -change $LIBPATH/libintl.8.dylib @executable_path/../Frameworks/libintl.8.0.2.dylib "$TARGET_BUILD_DIR/MacIrssi.app/Contents/MacOS/MacIrssi"
#libglib
install_name_tool -change $LIBPATH/libintl.8.dylib @executable_path/../Frameworks/libintl.8.0.2.dylib "$TARGET_BUILD_DIR/MacIrssi.app/Contents/Frameworks/libglib-2.0.0.dylib"
#libgmodule
install_name_tool -change $LIBPATH/libglib-2.0.0.dylib @executable_path/../Frameworks/libglib-2.0.0.dylib "$TARGET_BUILD_DIR/MacIrssi.app/Contents/Frameworks/libgmodule-2.0.0.dylib"
install_name_tool -change $LIBPATH/libintl.8.dylib @executable_path/../Frameworks/libintl.8.0.2.dylib "$TARGET_BUILD_DIR/MacIrssi.app/Contents/Frameworks/libgmodule-2.0.0.dylib"
exit 0