diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-03-18 20:24:03 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-03-18 20:24:03 +0000 |
commit | 0c3057952bc51919f79ac55d28094019aeb7c32f (patch) | |
tree | 097cabee463652ac7da24a5b8ac0130f9994522c /sys-libs | |
parent | arm stable, bug #357497 (diff) | |
download | gentoo-2-0c3057952bc51919f79ac55d28094019aeb7c32f.tar.gz gentoo-2-0c3057952bc51919f79ac55d28094019aeb7c32f.tar.bz2 gentoo-2-0c3057952bc51919f79ac55d28094019aeb7c32f.zip |
Stick the ABI flags into CC so that they are used at all steps -- compiler, assemble, and link.
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/glibc/ChangeLog | 6 | ||||
-rw-r--r-- | sys-libs/glibc/files/eblits/common.eblit | 11 |
2 files changed, 12 insertions, 5 deletions
diff --git a/sys-libs/glibc/ChangeLog b/sys-libs/glibc/ChangeLog index 263c6b23276b..b7548bb3756a 100644 --- a/sys-libs/glibc/ChangeLog +++ b/sys-libs/glibc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-libs/glibc # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.759 2011/03/11 07:43:19 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.760 2011/03/18 20:24:03 vapier Exp $ + + 18 Mar 2011; Mike Frysinger <vapier@gentoo.org> files/eblits/common.eblit: + Stick the ABI flags into CC so that they are used at all steps -- compiler, + assemble, and link. *glibc-2.13-r2 (11 Mar 2011) diff --git a/sys-libs/glibc/files/eblits/common.eblit b/sys-libs/glibc/files/eblits/common.eblit index 25ae8d88f279..691dee9ce0b6 100644 --- a/sys-libs/glibc/files/eblits/common.eblit +++ b/sys-libs/glibc/files/eblits/common.eblit @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.16 2011/03/10 08:04:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.17 2011/03/18 20:24:03 vapier Exp $ # We need to be able to set alternative headers for # compiling for non-native platform @@ -288,9 +288,12 @@ setup_env() { export ABI=${ABI:-${DEFAULT_ABI:-default}} local VAR=CFLAGS_${ABI} - # We need to export CFLAGS with abi information in them because - # glibc's configure script checks CFLAGS for some targets (like mips) - export CFLAGS="${!VAR} ${CFLAGS}" + # We need to export CFLAGS with abi information in them because glibc's + # configure script checks CFLAGS for some targets (like mips). Keep + # around the original clean value to avoid appending multiple ABIs on + # top of each other. + : ${__GLIBC_CC:=$(tc-getCC)} + export __GLIBC_CC CC="${__GLIBC_CC} ${!VAR}" } just_headers() { |