GCC 4.4.0 XCFLAGS

Guy Dalziel krendoshazin at dementedfury.org
Fri Jul 3 13:55:50 MDT 2009


It seems that GCC no longer contains XCFLAGS in gcc/Makefile.in. Instead,
there is a new function called T_CFLAGS in its place. The comment says
"T_CFLAGS is used for all compilations and is overriden by t-* files" 
where previously it said, "XCFLAGS is used for most compilations but not 
when using the GCC just built." I don't know how important the difference 
between _most_ compiles and _all_ compiles is, but T_CFLAGS seems to work 
just as well.

The new command is:

case `uname -m` in
  i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' \
        gcc/Makefile.in ;;
esac
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://linuxfromscratch.org/pipermail/lfs-dev/attachments/20090703/ea2b9aca/attachment.bin 


More information about the lfs-dev mailing list