GCC 4.6: Pass -O2' and optionally
-g' to the bootstrap compiler.
svn path=/nixpkgs/trunk/; revision=27465
This commit is contained in:
parent
394375f900
commit
7b78f74a6d
@ -50,6 +50,17 @@ if test "$noSysDirs" = "1"; then
|
|||||||
extraFlags="-I$NIX_FIXINC_DUMMY $extraFlags"
|
extraFlags="-I$NIX_FIXINC_DUMMY $extraFlags"
|
||||||
extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"
|
extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"
|
||||||
|
|
||||||
|
# BOOT_CFLAGS defaults to `-g -O2'; since we override it below,
|
||||||
|
# make sure to explictly add them so that files compiled with the
|
||||||
|
# bootstrap compiler are optimized and (optionally) contain
|
||||||
|
# debugging information (info "(gccinstall) Building").
|
||||||
|
if test -n "$dontStrip"; then
|
||||||
|
extraFlags="-O2 -g $extraFlags"
|
||||||
|
else
|
||||||
|
# Don't pass `-g' at all; this saves space while building.
|
||||||
|
extraFlags="-O2 $extraFlags"
|
||||||
|
fi
|
||||||
|
|
||||||
EXTRA_FLAGS="$extraFlags"
|
EXTRA_FLAGS="$extraFlags"
|
||||||
for i in $extraLDFlags; do
|
for i in $extraLDFlags; do
|
||||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,$i"
|
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,$i"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user