summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-07 11:31:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-07 11:32:14 -0700
commit5c403edf795cadc8416d6dd86c0248741c86506d (patch)
tree7ff2ac675ec821274250ff5b0500e79ad29614b6 /scripts
parentc0a08b889ed3b9912b5a4f455cce26ca009af184 (diff)
downloadsubsurface-5c403edf795cadc8416d6dd86c0248741c86506d.tar.gz
build-system/macOS: fix up the id of libssh2 as well
For some reason we only tried to fix libgit2 but not the libssh2 that it depend on. Weird. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index c86e3e671..64a86b802 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -218,6 +218,14 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
make -j4
make install
popd
+ if [ $PLATFORM = Darwin ] ; then
+ # in order for macdeployqt to do its job correctly, we need the full path in the dylib ID
+ cd $INSTALL_ROOT/lib
+ NAME=$(otool -L libssh2.dylib | grep -v : | head -1 | cut -f1 -d\ | tr -d '\t')
+ echo $NAME | if grep -v / > /dev/null 2>&1 ; then
+ install_name_tool -id "$INSTALL_ROOT/lib/$NAME" "$INSTALL_ROOT/lib/$NAME"
+ fi
+ fi
fi
if [[ "$LIBGIT" < "24" ]] ; then