Gentoo Archives: gentoo-dev

From: Andrew Gaffney <agaffney@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] x86 toolchain changes heads up
Date: Wed, 18 Jul 2007 14:10:53
Message-Id: 469E1E6F.3090600@gentoo.org
In Reply to: Re: [gentoo-dev] x86 toolchain changes heads up by Peter Gordon
1 Peter Gordon wrote:
2 > On Tue, 2007-07-17 at 19:47 -0400, Mike Frysinger wrote:
3 >> historically, gcc on x86 has always defaulted to i386. some people noticed
4 >> recently that glibc-2.6 fails to build in this situation as they were only
5 >> setting -mtune via CFLAGS, not -march. i'll be tweaking gcc so that it will
6 >> default -march based on your CHOST. so all the i686-* people will now have a
7 >> default -march=i686 implied in their gcc systems, i586-* people will
8 >> have -march=i586, etc... keep in mind this is merely the default.
9 >> -mike
10 >
11 > Does this mean that any user-set "-march" flag is overridden for these
12 > cases? Just curious.
13
14 You quoted the answer :) These flags are "merely the default". Any
15 user-specified flags will override the default. For example, if you have
16 CFLAGS="-march=i586" with a i686 CHOST, it'd be effectively like calling gcc
17 with 'gcc -march=i686 -march=i586'. The later option would win.
18
19 --
20 Andrew Gaffney http://dev.gentoo.org/~agaffney/
21 Gentoo Linux Developer Catalyst/Installer + x86 release coordinator
22 --
23 gentoo-dev@g.o mailing list