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
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to