From ca7f5935beaad8eff1f1c263a5e0b6561a1884f0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 31 Dec 2016 20:34:54 -0800 Subject: Fix MacOS make-package script We need the full path to the local libssh in order to replace it with the correct path. Signed-off-by: Dirk Hohndel --- packaging/macosx/make-package.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/macosx/make-package.sh b/packaging/macosx/make-package.sh index 6504e8ccd..6ff1d4cf0 100755 --- a/packaging/macosx/make-package.sh +++ b/packaging/macosx/make-package.sh @@ -32,7 +32,8 @@ for i in libssh libssrfmarblewidget libgit2 libGrantlee_TextDocument.dylib libGr LIBSSH=$(basename ${OLD}) fi if [[ "$i" = "libgit2" && ! -z ${LIBSSH} ]] ; then - install_name_tool -change ${LIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME} + CURLIBSSH=$(otool -L Subsurface.app/Contents/Frameworks/${SONAME} | grep libssh | cut -d\ -f1 | tr -d "\t") + install_name_tool -change ${CURLIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME} fi fi done -- cgit v1.2.3-70-g09d2