From b4a08320356ffb4a799486d3655598b2273cf242 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 14 Nov 2010 14:58:28 +0000 Subject: [PATCH] Strip the executables of debug info. git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@39429 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build-gcc4-optional-package-Haiku.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build-gcc4-optional-package-Haiku.sh b/build-gcc4-optional-package-Haiku.sh index d6d91e2..9b6895e 100755 --- a/build-gcc4-optional-package-Haiku.sh +++ b/build-gcc4-optional-package-Haiku.sh @@ -119,6 +119,13 @@ "$installDir/lib/libstdc++.so" +# strip the executables of debug info (somewhat crude heuristics to identify +# actual executables: files >= 20 kiB with execute permission and not in a "lib" +# directory) +strip --strip-debug \ + `find "$installDir" -type f -a -perm -u=x -a -size +20k | grep -v /lib/` + + # add C++ header symlink ln -s c++/$gccVersion $installDir/include/g++ -- gitore 0.2.2