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
parent
commit
6c0edb0c9e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      makeReleaseMac.sh

17
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

Loading…
Cancel
Save