Move Xcode project to a separate tree parallel to src
This commit is contained in:
24
pkg/mac/fix_dylibs.sh
Executable file
24
pkg/mac/fix_dylibs.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# fix_dylibs.sh
|
||||
# BoE
|
||||
#
|
||||
# Created by Celtic Minstrel on 14-04-17.
|
||||
#
|
||||
|
||||
echo Fixing boost dylib install names...
|
||||
|
||||
EXEPATH=@executable_path/../Frameworks
|
||||
BOEPATH="$BUILT_PRODUCTS_DIR/$EXECUTABLE_PATH"
|
||||
BFSPATH="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/libboost_filesystem.dylib"
|
||||
BTHPATH="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/libboost_thread.dylib"
|
||||
|
||||
# Update references in the executable file
|
||||
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BOEPATH"
|
||||
install_name_tool -change libboost_filesystem.dylib "$EXEPATH/libboost_filesystem.dylib" "$BOEPATH"
|
||||
install_name_tool -change libboost_thread.dylib "$EXEPATH/libboost_thread.dylib" "$BOEPATH"
|
||||
|
||||
# Update references within Boost
|
||||
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BFSPATH"
|
||||
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BTHPATH"
|
||||
|
Reference in New Issue
Block a user