From 25e72dd30c1c8c2ed535f06b15ba983a11953981 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 14 Feb 2017 11:44:52 -0400 Subject: [PATCH] avoid OSX build failure when there are no rpaths to remove --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cc254c438d..ec5fcf2462 100644 --- a/Makefile +++ b/Makefile @@ -187,7 +187,9 @@ osxapp: Build/Standalone Build/OSXMkLibs # Remove all RPATHs, both because this overloads the linker on # OSX Sierra, and to avoid the binary looking in someone's home # directory. - eval install_name_tool $$(otool -l git-annex | grep "path " | sed 's/.*path /-delete_rpath /' | sed 's/ (.*//') git-annex + if otool -l git-annex | grep -q "path "; then \ + eval install_name_tool $$(otool -l git-annex | grep "path " | sed 's/.*path /-delete_rpath /' | sed 's/ (.*//') git-annex; \ + fi rm -rf "$(OSXAPP_DEST)" "$(OSXAPP_BASE)" install -d tmp/build-dmg -- 2.30.2