Files
oboe/osx/fix_dylibs.sh
Celtic Minstrel 964438abf3 Bundle frameworks and fix dynamic library paths to allow distribution
- Also updated readme and removed unused sfml-network dependency
- Remove redundant inclusion of /opt/local library search paths, as my Boost is in /usr/local and trying to compile against the MacPorts version doesn't work for some reason
- Use absolute paths instead of relative paths for linked frameworks and libraries in the project structure
- Don't try to link SFML.framework as it only contains headers, not libraries
- Add freetype to the project (was always a dependency, just more explicit now)
2014-04-17 16:49:07 -04:00

22 lines
654 B
Bash
Executable File

#!/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"
# 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"
# Update references within Boost
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BFSPATH"