From 94c2ed0ec290b8d097415af3dc347c6b55cbdbf0 Mon Sep 17 00:00:00 2001 From: su_v Date: Mon, 8 Sep 2014 23:39:54 +0200 Subject: osx-app.sh: restore strip option (bzr r13506.1.81) --- packaging/macosx/osx-app.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packaging/macosx/osx-app.sh b/packaging/macosx/osx-app.sh index 372ea1aea..e35448f19 100755 --- a/packaging/macosx/osx-app.sh +++ b/packaging/macosx/osx-app.sh @@ -36,7 +36,7 @@ # # Defaults -strip=false +strip_build=false add_wrapper=true add_python=true python_dir="" @@ -95,7 +95,7 @@ do python_dir="$2" shift 1 ;; -s) - strip=true ;; + strip_build=true ;; -l|--libraries) LIBPREFIX="$2" shift 1 ;; @@ -639,6 +639,15 @@ done # Some libraries don't seem to have write permission, fix this. chmod -R u+w "$package/Contents/Resources/lib" +# Strip libraries and executables if requested +#---------------------------------------------------------- +if [ "$strip_build" = "true" ]; then + echo -e "\n\033[1mStripping debugging symbols...\033[0m\n" + chmod +w "$pkglib"/*.dylib + strip -x "$pkglib"/*.dylib + strip -ur "$binpath" +fi + # Rewrite id and paths of linked libraries #---------------------------------------------------------- # extract level for relative path to libs -- cgit v1.2.3