Different *CFLAGS in gcc/Makefile.in

Jim Wilson wilson@tuliptree.org
Thu Mar 20 07:09:00 GMT 2008


Basile STARYNKEVITCH wrote:
> It is indeed the easiest. But for X_CFLAGS & T_CFLAGS I only found the 
> comment
> # These exists to be overridden by the x-* and t-* files, respectively.

t-* files are target makefile fragments.  x-* files are (cross)-host 
makefile fragments.  See config.gcc and config.host respectively.  You 
can find example uses by greping in config/*/*.

> and for XCFLAGS
> # XCFLAGS is used for most compilations but not when using the GCC just 
> built.

XCFLAGS is apparently obsolete and unused.  Looks like the last use was 
removed in 2004 from rs6000/x-darwin.  I see that libgomp is using 
XCFLAGS, but I think it is a different makefile variable than the gcc one.

By the way, X_CFLAGS and XCFLAGS are documented in doc/fragments.texi. 
T_CFLAGS docs are missing there though.  You can find all sorts of stuff 
if you grep the entire gcc source tree.

Jim



More information about the Gcc mailing list