From 128493ae8aea15e9e6ca2c8a093ba0b5a5c27abd Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 16 Aug 2015 16:57:24 -0700 Subject: Build script: fix install_name for libssrfmarblewidget on Mac Signed-off-by: Dirk Hohndel --- scripts/build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts') diff --git a/scripts/build.sh b/scripts/build.sh index 9a3ed5a4c..64a92f678 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -154,6 +154,16 @@ cd src/lib/marble make -j4 make install +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 libssrfmarblewidget.dylib | grep -v : | head -1 | cut -f1 -d\ | tr -d '\t' | cut -f3 -d/ ) + echo $NAME | grep / > /dev/null 2>&1 + if [ $? -eq 1 ] ; then + install_name_tool -id "$INSTALL_ROOT/lib/$NAME" "$INSTALL_ROOT/lib/$NAME" + fi +fi + # build grantlee cd $SRC -- cgit v1.2.3-70-g09d2