diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2014-09-08 21:39:54 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2014-09-08 21:39:54 +0000 |
| commit | 94c2ed0ec290b8d097415af3dc347c6b55cbdbf0 (patch) | |
| tree | 3d480905d7dcd18f7f6d827b10e1661ff6784831 /packaging | |
| parent | build scripts: implement verbose mode (diff) | |
| download | inkscape-94c2ed0ec290b8d097415af3dc347c6b55cbdbf0.tar.gz inkscape-94c2ed0ec290b8d097415af3dc347c6b55cbdbf0.zip | |
osx-app.sh: restore strip option
(bzr r13506.1.81)
Diffstat (limited to 'packaging')
| -rwxr-xr-x | packaging/macosx/osx-app.sh | 13 |
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 |
