--with-arch=i486 (was Re: Merging the jh branch to trunk)
Jeremy Huntwork
jhuntwork at linuxfromscratch.org
Sat Sep 15 12:12:37 MDT 2007
Dan Nicholson wrote:
> I'm pretty sure that the default CFLAGS are set during the AC_PROG_CC
> autoconf macro. So, we could either add our own customized macro and
> rebuild the autotools, or just hack the already generated configure
> script. This seems to work (I just did a successful build):
>
> sed -i.bak 's/CFLAGS=.*-O2/& -march=i486/' configure
Thanks for the research. I can see why you did it this way, because of
the way CFLAGS changes through the configure script. We could also do:
's/-O2/& -march=i486/'
The difference between that and the one you gave being that this would
also hit CXXFLAGS which by default uses the same flags as CFLAGS in the
configure script. It doesn't seem necessary to use -march with CXXFLAGS
to get glibc to build, but I'm curious as to the result.
Is anyone already familiar with Glibc's use of CXXFLAGS?
--
JH
More information about the lfs-dev
mailing list