--with-arch=i486 (was Re: Merging the jh branch to trunk)
Jeremy Huntwork
jhuntwork at linuxfromscratch.org
Sat Sep 15 06:49:53 MDT 2007
Matthew Burgess wrote:
> On Fri, 14 Sep 2007 23:16:56 -0400, Jeremy Huntwork <jhuntwork at linuxfromscratch.org> wrote:
>
>> So, to summarize, I propose not using --with-arch, but use the following
>> for Glibc:
>>
>> CFLAGS="-march=i486 -O2 -pipe" ../glibc-2.6.1/configure ...etc.
>>
>> Glibc requires some sort of optimization and -O2 seems safe. -pipe
>> should also be safe on gnu systems and should speed up compile times by
>> using pipes instead of temporary files.
>
> Alternatively, we could use CC="gcc -march=i486" ../glibc-2.6.1/configure ...etc. That way, the existing CFLAGS that the Glibc devs have selected will not be overriden.
There's no need to use -march for everything in the Glibc build system,
and I don't think we want to. If someone decides to change what you
suggested to i686, or perhaps some other cpu-type that more closely
matches their system, it will break the build. If we're using CFLAGS,
that doesn't happen.
I suppose it might be possible to introduce the -march flag to CFLAGS
without specifying the whole of CFLAGS on the command line... I'll take
a look.
--
JH
More information about the lfs-dev
mailing list