summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/osx-app.sh13
1 files 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