3
0
Fork 0
forked from mirrors/nixpkgs

* Remove some "fixed" header files.

* Strip the gcc executables.

svn path=/nixpkgs/trunk/; revision=8723
This commit is contained in:
Eelco Dolstra 2007-05-20 21:09:49 +00:00
parent b8dae869b3
commit 062308aabf

View file

@ -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
}