diff options
author | 2011-08-19 23:03:11 +0000 | |
---|---|---|
committer | 2011-08-19 23:03:11 +0000 | |
commit | 883732b27c5098f092af7d596967d4b3ff26de72 (patch) | |
tree | 450e5a91c12e380f88c6a0b3899c8f5b87762529 /sys-libs/glibc/files | |
parent | Version bump (diff) | |
download | historical-883732b27c5098f092af7d596967d4b3ff26de72.tar.gz historical-883732b27c5098f092af7d596967d4b3ff26de72.tar.bz2 historical-883732b27c5098f092af7d596967d4b3ff26de72.zip |
Make sync_fetch_and_add warnings a little more user friendly.
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64
Diffstat (limited to 'sys-libs/glibc/files')
-rw-r--r-- | sys-libs/glibc/files/eblits/common.eblit | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-libs/glibc/files/eblits/common.eblit b/sys-libs/glibc/files/eblits/common.eblit index 43a7722987ea..6ef9bd8af6e5 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.21 2011/03/20 22:39:12 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.22 2011/08/19 23:03:11 vapier Exp $ # We need to be able to set alternative headers for # compiling for non-native platform @@ -47,20 +47,22 @@ setup_target_flags() { case $(tc-arch) in x86) # -march needed for #185404 #199334 - if ! glibc_compile_test "" 'void f(int i, void *p) {if (__sync_fetch_and_add(&i, 1)) f(i, p);}\nint main(){return 0;}\n' ; then + if ! glibc_compile_test "" 'void f(int i, void *p) {if (__sync_fetch_and_add(&i, 1)) f(i, p);}\nint main(){return 0;}\n' 2>/dev/null ; then local t=${CTARGET_OPT:-${CTARGET}} t=${t%%-*} filter-flags '-march=*' export CFLAGS="-march=${t} ${CFLAGS}" + einfo "Auto adding -march=${t} to CFLAGS #185404" fi ;; amd64) # -march needed for #185404 #199334 - if ! glibc_compile_test "${CFLAGS_x86}" 'void f(int i, void *p) {if (__sync_fetch_and_add(&i, 1)) f(i, p);}\nint main(){return 0;}\n' ; then + if ! glibc_compile_test "${CFLAGS_x86}" 'void f(int i, void *p) {if (__sync_fetch_and_add(&i, 1)) f(i, p);}\nint main(){return 0;}\n' 2>/dev/null ; then local t=${CTARGET_OPT:-${CTARGET}} t=${t%%-*} filter-flags '-march=*' export CFLAGS_x86="${CFLAGS_x86} -march=${t}" + einfo "Auto adding -march=${t} to CFLAGS_x86 #185404" fi ;; ppc) |