mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Build script: fix install_name for libssrfmarblewidget on Mac
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
530c3a388b
commit
128493ae8a
1 changed files with 10 additions and 0 deletions
|
@ -154,6 +154,16 @@ cd src/lib/marble
|
||||||
make -j4
|
make -j4
|
||||||
make install
|
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
|
# build grantlee
|
||||||
|
|
||||||
cd $SRC
|
cd $SRC
|
||||||
|
|
Loading…
Add table
Reference in a new issue