This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up lib extension name, add script to fix internal dylib paths (…
…work in progress)
- Loading branch information
Showing
3 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
EXTERNAL_LIBS=/Users/Shared/xbmc-depends | ||
DYLIB_NAMEPATH=@executable_path/../Frameworks | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
opdenkamp
Owner
|
||
|
||
# change the dylib path used for linking | ||
install_name_tool -id "$(basename $1)" "$1" | ||
|
||
# change the dylib paths used for depends loading | ||
for a in $(otool -L "$1" | grep "$EXTERNAL_LIBS" | awk ' { print $1 } ') ; do | ||
echo " Packaging $a" | ||
install_name_tool -change "$a" "$DYLIB_NAMEPATH/$(basename $a)" "$1" | ||
done | ||
|
should this be @executable_path@ like all the variables in XBMC's Makefile.in's?