[gs-cvs] rev 10030 - trunk/gs/base

giles at ghostscript.com giles at ghostscript.com
Mon Aug 31 10:00:13 PDT 2009


Author: giles
Date: 2009-08-31 10:00:13 -0700 (Mon, 31 Aug 2009)
New Revision: 10030

Modified:
   trunk/gs/base/Makefile.in
Log:
Pass the full CFLAGS to CCAUX in the autoconf build, instead of just
GCFLAGS. This propagates target-defining options which are typically
set in XCFLAGS to build utilities so that, for example, -m32 results
in the correct sizes in arch.h.

Note that this may complicate cross-compiles. In theory CCAUX has
separate, simpler flags because of this, but there are also several
examples in the documentation of using XCFLAGS this way, so this
seems to the the safer approach at this time.

The dynamic flags for the separate x11 devices module are also
passed through XCFLAGS but they do not harm other than cluttering
the command line.

Modified: trunk/gs/base/Makefile.in
===================================================================
--- trunk/gs/base/Makefile.in	2009-08-30 15:50:31 UTC (rev 10029)
+++ trunk/gs/base/Makefile.in	2009-08-31 17:00:13 UTC (rev 10030)
@@ -471,7 +471,7 @@
 
 CCFLAGS=$(GENOPT) $(CAPOPT) $(CFLAGS)
 CC_=$(CC) $(CCFLAGS)
-CCAUX=$(CC) $(GCFLAGS)
+CCAUX=$(CC) $(CFLAGS)
 CC_LEAF=$(CC_)
 # note gcc can't use -fomit-frame-pointer with -pg.
 CC_LEAF_PG=$(CC_)



More information about the gs-cvs mailing list