⛏️ index : buildtools.git

author Ingo Weinhold <ingo_weinhold@gmx.de> 2010-11-14 14:58:28.0 +00:00:00
committer Ingo Weinhold <ingo_weinhold@gmx.de> 2010-11-14 14:58:28.0 +00:00:00
commit
b4a08320356ffb4a799486d3655598b2273cf242 [patch]
tree
7cc380871dec366f5be901f47d25fdba1074eaf7
parent
1e30b3120c3b262166c1486c304fe68f2f27578f
download
b4a08320356ffb4a799486d3655598b2273cf242.tar.gz

Strip the executables of debug info.

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@39429 a95241bf-73f2-0310-859d-f6bbb57e9c96

Diff

 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++