passing -o filename with multiple compile

Roderich Schupp rsch@experteam.de
Sun Oct 4 14:49:00 GMT 1998


Juan Casero <casero@bellsouth.net> said:
> gcc -O6 -ffast-math    -I/usr/local/include -I/usr/X11R6/include -I/
> include -Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L
                  ^^^^^^^^^^^^^^^^^^^
This is the problem. Unless the gcc-2.7 cpp the egcs cpp doesn't
predefine symbols like `i386'. But the XFree config files depend
on this symbol to set e.g. i386Architecture which in turn is
needed to set LinuxMachineDefines (cf. linux.cf). (Note that
when you invoke cpp thru gcc, gcc will supply -Di386 when running cpp.
Hence compiles aren't effected by this change in behaviour,
only when you explicitly invoke cpp, as e.g. imake does).
Assuming that you are on Intel the fix is to use

     make World BOOTSTRAPCFLAGS=-Di386

when building the X server. And make sure the imake that gets built
in xc/config/imake is installed, because this imake will now pass
`-Di386' when it invokes cpp). Otherwise any future xmkmf that you do
will suffer from the same problem.

Cheers, Roderich



--
             "Report all obscene mail to your Potsmaster"

Roderich Schupp                 mailto:rsch@ExperTeam.de
ExperTeam GmbH                  http://www.experteam.de/
Munich, Germany                 linux:2.1.124






More information about the Gcc mailing list