diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-07-07 10:59:22 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-07 10:59:53 -0700 |
commit | c0a08b889ed3b9912b5a4f455cce26ca009af184 (patch) | |
tree | f9aa608b0c11103f1553c14fdc7b872269f478ef | |
parent | 516e3421b1f053fb641152e802752429243aa279 (diff) | |
download | subsurface-c0a08b889ed3b9912b5a4f455cce26ca009af184.tar.gz |
build-system/macOS: correctly test if we need to adjust the id of libgit2
The existing test was backwards and never worked.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-x | scripts/build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 7589f7eaa..c86e3e671 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -238,7 +238,7 @@ if [[ "$LIBGIT" < "24" ]] ; 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 libgit2.dylib | grep -v : | head -1 | cut -f1 -d\ | tr -d '\t') - echo $NAME | if grep / > /dev/null 2>&1 ; then + echo $NAME | if grep -v / > /dev/null 2>&1 ; then install_name_tool -id "$INSTALL_ROOT/lib/$NAME" "$INSTALL_ROOT/lib/$NAME" fi fi |