Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
Date: Wed, 10 Oct 2007 20:01:56
Message-Id: E1IfhbD-0003KM-SV@stork.gentoo.org
1 vapier 07/10/10 19:52:07
2
3 Modified: common.eblit
4 Log:
5 Add default -march for x86 on amd64 builds based on CHOST #185404.
6 (Portage version: 2.1.3.12)
7
8 Revision Changes Path
9 1.4 sys-libs/glibc/files/eblits/common.eblit
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.4&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.4&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.3&r2=1.4
14
15 Index: common.eblit
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
18 retrieving revision 1.3
19 retrieving revision 1.4
20 diff -u -r1.3 -r1.4
21 --- common.eblit 7 Oct 2007 03:18:51 -0000 1.3
22 +++ common.eblit 10 Oct 2007 19:52:07 -0000 1.4
23 @@ -1,6 +1,6 @@
24 # Copyright 1999-2007 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.3 2007/10/07 03:18:51 vapier Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.4 2007/10/10 19:52:07 vapier Exp $
28
29 # We need to be able to set alternative headers for
30 # compiling for non-native platform
31 @@ -80,6 +80,13 @@
32 amd64)
33 # Punt this when amd64's 2004.3 is removed
34 CFLAGS_x86="-m32"
35 +
36 + # -march needed for #185404
37 + if ! echo "" | $(tc-getCC) -m32 -E -dD - | grep -qs __i686__ ; then
38 + filter-flags '-march=*'
39 + local t=${CTARGET_OPT:-${CTARGET}}
40 + export CFLAGS_x86="${CFLAGS_x86} -march=${t%%-*}"
41 + fi
42 ;;
43 ppc)
44 append-flags "-freorder-blocks"
45
46
47
48 --
49 gentoo-commits@g.o mailing list