From 062308aabfe3d46aaa2bd7a3ff474f4d51851ddf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 20 May 2007 21:09:49 +0000 Subject: [PATCH] * Remove some "fixed" header files. * Strip the gcc executables. svn path=/nixpkgs/trunk/; revision=8723 --- pkgs/development/compilers/gcc-4.2/builder.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc-4.2/builder.sh b/pkgs/development/compilers/gcc-4.2/builder.sh index 84570421f57..c17d0403702 100644 --- a/pkgs/development/compilers/gcc-4.2/builder.sh +++ b/pkgs/development/compilers/gcc-4.2/builder.sh @@ -31,10 +31,13 @@ if test "$noSysDirs" = "1"; then export NIX_FIXINC_DUMMY=/usr/include fi + extraCFlags="-g0 $extraCFlags" + extraLDFlags="--strip-debug $extraLDFlags" + export NIX_EXTRA_CFLAGS=$extraCFlags for i in $extraLDFlags; do export NIX_EXTRA_LDFLAGS="$NIX_EXTRA_LDFLAGS -Wl,$i" - done + done makeFlagsArray=( \ NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ @@ -65,6 +68,9 @@ postInstall() { # Remove `fixincl' to prevent a retained dependency on the # previous gcc. rm -rf $out/libexec/gcc/*/*/install-tools + + # Get rid of some "fixed" header files + rm -rf $out/lib/gcc/*/*/include/root }