Browse Source
Merge pull request #70 from VerusCoin/dave-dev
Fix Mac dependencies for libs depending on libs.
pull/4/head
Asher Dawes
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
14 additions and
3 deletions
-
makeReleaseMac.sh
|
|
@ -38,20 +38,31 @@ do |
|
|
|
DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'` |
|
|
|
echo "copying indirect $DYLIBS to $KMD_DIR" |
|
|
|
# copy the dylibs to the dest dir |
|
|
|
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=(i$dylib); done |
|
|
|
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); done |
|
|
|
done |
|
|
|
|
|
|
|
for binary in "${binaries[@]}"; |
|
|
|
do |
|
|
|
# modify komodod to point to dylibs |
|
|
|
echo "modifying $binary to use local libraries" |
|
|
|
i=0 |
|
|
|
for dylib in "${alllibs[@]}" |
|
|
|
do |
|
|
|
let i=i+1 |
|
|
|
echo "Next lib is $dylib " |
|
|
|
install_name_tool -change $dylib @executable_path/`basename $dylib` $KMD_DIR/$binary |
|
|
|
done |
|
|
|
chmod +x $KMD_DIR/$binary |
|
|
|
done |
|
|
|
|
|
|
|
for binary in "${libraries[@]}"; |
|
|
|
do |
|
|
|
# modify libraries to point to dylibs |
|
|
|
echo "modifying $binary to use local libraries" |
|
|
|
for dylib in "${alllibs[@]}" |
|
|
|
do |
|
|
|
echo "Next lib is $dylib " |
|
|
|
install_name_tool -change $dylib @executable_path/`basename $dylib` $KMD_DIR/$binary |
|
|
|
done |
|
|
|
chmod +x $KMD_DIR/$binary |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|