public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2007-10-07  3:18 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2007-10-07  3:18 UTC (permalink / raw
  To: gentoo-commits

vapier      07/10/07 03:18:51

  Modified:             common.eblit
  Log:
  tweak the fix for #185404 a bit
  (Portage version: 2.1.3.11)

Revision  Changes    Path
1.3                  sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.2&r2=1.3

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- common.eblit	6 Aug 2007 09:50:08 -0000	1.2
+++ common.eblit	7 Oct 2007 03:18:51 -0000	1.3
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 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.2 2007/08/06 09:50:08 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.3 2007/10/07 03:18:51 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -71,8 +71,11 @@
 	case $(tc-arch) in
 		x86)
 			# -march needed for #185404
-			local t=${CTARGET_OPT:-${CTARGET}}
-			export CFLAGS="-march=${t%%-*} ${CFLAGS}"
+			if ! echo "" | $(tc-getCC) -E -dD - | grep -qs __i686__ ; then
+				filter-flags '-march=*'
+				local t=${CTARGET_OPT:-${CTARGET}}
+				export CFLAGS="-march=${t%%-*} ${CFLAGS}"
+			fi
 		;;
 		amd64)
 			# Punt this when amd64's 2004.3 is removed



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2007-10-10 19:52 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2007-10-10 19:52 UTC (permalink / raw
  To: gentoo-commits

vapier      07/10/10 19:52:07

  Modified:             common.eblit
  Log:
  Add default -march for x86 on amd64 builds based on CHOST #185404.
  (Portage version: 2.1.3.12)

Revision  Changes    Path
1.4                  sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.3&r2=1.4

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- common.eblit	7 Oct 2007 03:18:51 -0000	1.3
+++ common.eblit	10 Oct 2007 19:52:07 -0000	1.4
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 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.3 2007/10/07 03:18:51 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.4 2007/10/10 19:52:07 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -80,6 +80,13 @@
 		amd64)
 			# Punt this when amd64's 2004.3 is removed
 			CFLAGS_x86="-m32"
+
+			# -march needed for #185404
+			if ! echo "" | $(tc-getCC) -m32 -E -dD - | grep -qs __i686__ ; then
+				filter-flags '-march=*'
+				local t=${CTARGET_OPT:-${CTARGET}}
+				export CFLAGS_x86="${CFLAGS_x86} -march=${t%%-*}"
+			fi
 		;;
 		ppc)
 			append-flags "-freorder-blocks"



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2007-11-18  3:28 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2007-11-18  3:28 UTC (permalink / raw
  To: gentoo-commits

vapier      07/11/18 03:28:02

  Modified:             common.eblit
  Log:
  check user CFLAGS so that we force -march= to match $CHOST
  (Portage version: 2.1.3.19)

Revision  Changes    Path
1.5                  sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.4&r2=1.5

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- common.eblit	10 Oct 2007 19:52:07 -0000	1.4
+++ common.eblit	18 Nov 2007 03:28:02 -0000	1.5
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 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.4 2007/10/10 19:52:07 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.5 2007/11/18 03:28:02 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -71,10 +71,11 @@
 	case $(tc-arch) in
 		x86)
 			# -march needed for #185404
-			if ! echo "" | $(tc-getCC) -E -dD - | grep -qs __i686__ ; then
+			local t=${CTARGET_OPT:-${CTARGET}}
+			t=${t%%-*}
+			if ! echo "" | $(tc-getCC) ${CFLAGS} -E -dD - | grep -qs __${t}__ ; then
 				filter-flags '-march=*'
-				local t=${CTARGET_OPT:-${CTARGET}}
-				export CFLAGS="-march=${t%%-*} ${CFLAGS}"
+				export CFLAGS="-march=${t} ${CFLAGS}"
 			fi
 		;;
 		amd64)
@@ -82,10 +83,11 @@
 			CFLAGS_x86="-m32"
 
 			# -march needed for #185404
-			if ! echo "" | $(tc-getCC) -m32 -E -dD - | grep -qs __i686__ ; then
+			local t=${CTARGET_OPT:-${CTARGET}}
+			t=${t%%-*}
+			if ! echo "" | $(tc-getCC) ${CFLAGS} ${CFLAGS_x86} -m32 -E -dD - | grep -qs __${t}__ ; then
 				filter-flags '-march=*'
-				local t=${CTARGET_OPT:-${CTARGET}}
-				export CFLAGS_x86="${CFLAGS_x86} -march=${t%%-*}"
+				export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
 			fi
 		;;
 		ppc)



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2008-06-22 14:05 Friedrich Oslage (bluebird)
  0 siblings, 0 replies; 31+ messages in thread
From: Friedrich Oslage (bluebird) @ 2008-06-22 14:05 UTC (permalink / raw
  To: gentoo-commits

bluebird    08/06/22 14:05:57

  Modified:             common.eblit
  Log:
  add support for 32bit userland with multilib on sparc
  (Portage version: 2.1.4.4)

Revision  Changes    Path
1.6                  sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.5&r2=1.6

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- common.eblit	18 Nov 2007 03:28:02 -0000	1.5
+++ common.eblit	22 Jun 2008 14:05:56 -0000	1.6
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 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.5 2007/11/18 03:28:02 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.6 2008/06/22 14:05:56 bluebird Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -220,7 +220,7 @@
 
 use_multilib() {
 	case ${CTARGET} in
-		sparc64*|mips64*|x86_64*|powerpc64*|s390x*)
+		sparc*|mips64*|x86_64*|powerpc64*|s390x*)
 			has_multilib_profile || use multilib ;;
 		*)  false ;;
 	esac



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2008-12-23 11:59 Friedrich Oslage (bluebird)
  0 siblings, 0 replies; 31+ messages in thread
From: Friedrich Oslage (bluebird) @ 2008-12-23 11:59 UTC (permalink / raw
  To: gentoo-commits

bluebird    08/12/23 11:59:43

  Modified:             common.eblit
  Log:
  Add support to optimize for UltraSPARC T1 and T2 cpus
  (Portage version: 2.2_rc18/cvs/Linux 2.6.28-rc9-00039-g4c75e14 i686)

Revision  Changes    Path
1.7                  sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.6&r2=1.7

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- common.eblit	22 Jun 2008 14:05:56 -0000	1.6
+++ common.eblit	23 Dec 2008 11:59:43 -0000	1.7
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 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.6 2008/06/22 14:05:56 bluebird Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.7 2008/12/23 11:59:43 bluebird Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -99,12 +99,27 @@
 			append-flags "-fcall-used-g6"
 			filter-flags "-mvis"
 
+			GLIBCMAJOR=$(get_version_component_range 1 ${PV})
+			GLIBCMINOR=$(get_version_component_range 2 ${PV})
+
+			# set CTARGET_OPT so glibc can use cpu-specific .S files for better performance
+			# - UltraSPARC T1 (niagara) support requires >= glibc 2.8
+			# - UltraSPARC T2 (niagara2) support requires >= glibc 2.7
+
 			if is_crosscompile || [[ ${PROFILE_ARCH} == "sparc64" ]] || { has_multilib_profile && ! tc-is-cross-compiler; } ; then
 				case ${ABI} in
 					sparc64)
 						filter-flags -Wa,-xarch -Wa,-A
 
-						if is-flag "-mcpu=ultrasparc3"; then
+						if is-flagq "-mcpu=niagara2" && [[ ${GLIBCMAJOR}.${GLIBCMINOR} > 2.7 ]] ; then
+							CTARGET_OPT="sparc64v2-unknown-linux-gnu"
+							append-flags "-Wa,-xarch=v9b"
+							export ASFLAGS="${ASFLAGS} -Wa,-xarch=v9b"
+						elif { is-flagq "-mcpu=niagara" || is-flagq "-mcpu=niagara2" ; } && [[ ${GLIBCMAJOR}.${GLIBCMINOR} > 2.6 ]] ; then
+							CTARGET_OPT="sparc64v-unknown-linux-gnu"
+							append-flags "-Wa,-xarch=v9b"
+							export ASFLAGS="${ASFLAGS} -Wa,-xarch=v9b"
+						elif is-flagq "-mcpu=ultrasparc3" || is-flagq "-mcpu=niagara" || is-flagq "-mcpu=niagara2"; then
 							CTARGET_OPT="sparc64b-unknown-linux-gnu"
 							append-flags "-Wa,-xarch=v9b"
 							export ASFLAGS="${ASFLAGS} -Wa,-xarch=v9b"
@@ -115,7 +130,11 @@
 						fi
 					;;
 					*)
-						if is-flag "-mcpu=ultrasparc3"; then
+						if is-flagq "-mcpu=niagara2" && [[ ${GLIBCMAJOR}.${GLIBCMINOR} > 2.7 ]] ; then
+							CTARGET_OPT="sparcv9v2-unknown-linux-gnu"
+						elif { is-flagq "-mcpu=niagara" || is-flagq "-mcpu=niagara2" ; } && [[ ${GLIBCMAJOR}.${GLIBCMINOR} > 2.6 ]] ; then
+							CTARGET_OPT="sparcv9v-unknown-linux-gnu"
+						elif is-flagq "-mcpu=ultrasparc3" || is-flagq "-mcpu=niagara" || is-flagq "-mcpu=niagara2"; then
 							CTARGET_OPT="sparcv9b-unknown-linux-gnu"
 						else
 							CTARGET_OPT="sparcv9-unknown-linux-gnu"
@@ -123,9 +142,13 @@
 					;;
 				esac
 			else
-				if is-flag "-mcpu=ultrasparc3"; then
+				if is-flagq "-mcpu=niagara2" && [[ ${GLIBCMAJOR}.${GLIBCMINOR} > 2.7 ]] ; then
+					CTARGET_OPT="sparcv9v2-unknown-linux-gnu"
+				elif { is-flagq "-mcpu=niagara" || is-flagq "-mcpu=niagara2" ; } && [[ ${GLIBCMAJOR}.${GLIBCMINOR} > 2.6 ]] ; then
+					CTARGET_OPT="sparcv9v-unknown-linux-gnu"
+				elif is-flagq "-mcpu=ultrasparc3" || is-flagq "-mcpu=niagara" || is-flagq "-mcpu=niagara2"; then
 					CTARGET_OPT="sparcv9b-unknown-linux-gnu"
-				elif { is_crosscompile && want_nptl; } || is-flag "-mcpu=ultrasparc2" || is-flag "-mcpu=ultrasparc"; then
+				elif { is_crosscompile && want_nptl; } || is-flagq "-mcpu=ultrasparc2" || is-flagq "-mcpu=ultrasparc"; then
 					CTARGET_OPT="sparcv9-unknown-linux-gnu"
 				fi
 			fi






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2009-01-28 18:11 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2009-01-28 18:11 UTC (permalink / raw
  To: gentoo-commits

vapier      09/01/28 18:11:41

  Modified:             common.eblit
  Log:
  Build glibc with -U_FORTIFY_SOURCE.
  (Portage version: 2.2_rc23/cvs/Linux x86_64)

Revision  Changes    Path
1.9                  sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.8&r2=1.9

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- common.eblit	29 Dec 2008 09:22:45 -0000	1.8
+++ common.eblit	28 Jan 2009 18:11:41 -0000	1.9
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 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.8 2008/12/29 09:22:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.9 2009/01/28 18:11:41 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -164,6 +164,9 @@
 	filter-flags -O?
 	append-flags -O2 -fno-strict-aliasing
 
+	# Cant build glibc itself with fortify code
+	append-cppflags -U_FORTIFY_SOURCE
+
 	# building glibc with SSP is fraught with difficulty, especially
 	# due to __stack_chk_fail_local which would mean significant changes
 	# to the glibc build process. See bug #94325






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2009-12-01  4:57 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2009-12-01  4:57 UTC (permalink / raw
  To: gentoo-commits

vapier      09/12/01 04:57:04

  Modified:             common.eblit
  Log:
  Switch to common tc-has-tls function.
  (Portage version: 2.2_rc51/cvs/Linux x86_64)

Revision  Changes    Path
1.10                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.9&r2=1.10

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- common.eblit	28 Jan 2009 18:11:41 -0000	1.9
+++ common.eblit	1 Dec 2009 04:57:04 -0000	1.10
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 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.9 2009/01/28 18:11:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.10 2009/12/01 04:57:04 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -236,10 +236,9 @@
 
 	[[ -n ${WANT__THREAD} ]] && return ${WANT__THREAD}
 
-	echo 'extern __thread int i;' > "${T}"/test-__thread.c
-	$(tc-getCC ${CTARGET}) -c "${T}"/test-__thread.c -o "${T}"/test-__thread.o &> /dev/null
+	# only test gcc -- cant test linking yet
+	tc-has-tls -c ${CTARGET}
 	WANT__THREAD=$?
-	rm -f "${T}"/test-__thread.[co]
 
 	return ${WANT__THREAD}
 }






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2010-06-16  1:43 Magnus Granberg (zorry)
  0 siblings, 0 replies; 31+ messages in thread
From: Magnus Granberg (zorry) @ 2010-06-16  1:43 UTC (permalink / raw
  To: gentoo-commits

zorry       10/06/16 01:43:37

  Modified:             common.eblit
  Log:
  bug #293721 support for >=gcc 4.2 SSP support
  (Portage version: 2.2_rc67/cvs/Linux x86_64)

Revision  Changes    Path
1.11                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.10&r2=1.11

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- common.eblit	1 Dec 2009 04:57:04 -0000	1.10
+++ common.eblit	16 Jun 2010 01:43:37 -0000	1.11
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 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.10 2009/12/01 04:57:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.11 2010/06/16 01:43:37 zorry Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -169,8 +169,8 @@
 
 	# building glibc with SSP is fraught with difficulty, especially
 	# due to __stack_chk_fail_local which would mean significant changes
-	# to the glibc build process. See bug #94325
-	filter-flags -fstack-protector
+	# to the glibc build process. See bug #94325 #293721
+	use hardened && gcc-specs-ssp && append-cflags $(test-flags-CC -fno-stack-protector)
 
 	if use hardened && gcc-specs-pie ; then
 		# Force PIC macro definition for all compilations since they're all






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-03-09  8:10 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-09  8:10 UTC (permalink / raw
  To: gentoo-commits

vapier      11/03/09 08:10:38

  Modified:             common.eblit
  Log:
  Always get multilib info via multilib_env and move the CFLAGS_abi value from that explicitly into CFLAGS (rather than letting gcc-config do it magicallyin the backend via the env).  This avoids ugly issues like distcc in a cross or multilib setup freaking out (#330423) as well as ccache pollution of wrong ELF types (such as #79519).  Further, it fixes multilib building for glibc targets where the configure script detects the desired multilib based purely on the compiler flags since the target is the same (e.g. mips64-xxx and n32 vs n64, and probably others).

Revision  Changes    Path
1.13                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.13&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.13&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.12&r2=1.13

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- common.eblit	30 Sep 2010 06:29:21 -0000	1.12
+++ common.eblit	9 Mar 2011 08:10:38 -0000	1.13
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 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.12 2010/09/30 06:29:21 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.13 2011/03/09 08:10:38 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -262,13 +262,14 @@
 	version_is_at_least ${nver} ${bver}
 }
 
-# Setup toolchain variables that would be defined in the profiles for these archs.
+# Setup toolchain variables that had historically
+# been defined in the profiles for these archs.
 setup_env() {
 	# silly users
 	unset LD_RUN_PATH
 
+	multilib_env ${CTARGET_OPT:-${CTARGET}}
 	if is_crosscompile || tc-is-cross-compiler ; then
-		multilib_env ${CTARGET}
 		if ! use multilib ; then
 			MULTILIB_ABIS=${DEFAULT_ABI}
 		else
@@ -285,12 +286,10 @@
 
 	export ABI=${ABI:-${DEFAULT_ABI:-default}}
 
-	if is_crosscompile || tc-is-cross-compiler ; then
-		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}"
-	fi
+	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}"
 }
 
 just_headers() {






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-03-10  6:50 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-10  6:50 UTC (permalink / raw
  To: gentoo-commits

vapier      11/03/10 06:50:56

  Modified:             common.eblit
  Log:
  Drop old sparc64 tls test #340773 by Alex Buell.
  
  (Portage version: 2.2.0_alpha26/cvs/Linux x86_64)

Revision  Changes    Path
1.14                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.14&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.14&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.13&r2=1.14

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- common.eblit	9 Mar 2011 08:10:38 -0000	1.13
+++ common.eblit	10 Mar 2011 06:50:56 -0000	1.14
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# 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.13 2011/03/09 08:10:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.14 2011/03/10 06:50:56 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -210,14 +210,6 @@
 want_tls() {
 	# Archs that can use TLS (Thread Local Storage)
 	case $(tc-arch) in
-		sparc)
-			# 2.3.6 should have tls support on sparc64
-			# when using newer binutils
-			case ${CTARGET/-*} in
-				sparc64*) return 1 ;;
-				*) return 0 ;;
-			esac
-		;;
 		x86)
 			# requires i486 or better #106556
 			[[ ${CTARGET} == i[4567]86* ]] && return 0






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-03-10  7:35 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-10  7:35 UTC (permalink / raw
  To: gentoo-commits

vapier      11/03/10 07:35:38

  Modified:             common.eblit
  Log:
  Handle "default" ABI for sparc64 targets without falling back to a sparc32 CTARGET.

Revision  Changes    Path
1.15                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.14&r2=1.15

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- common.eblit	10 Mar 2011 06:50:56 -0000	1.14
+++ common.eblit	10 Mar 2011 07:35:38 -0000	1.15
@@ -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.14 2011/03/10 06:50:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.15 2011/03/10 07:35:38 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -107,8 +107,9 @@
 			# - UltraSPARC T2 (niagara2) support requires >= glibc 2.7
 
 			if is_crosscompile || [[ ${PROFILE_ARCH} == "sparc64" ]] || { has_multilib_profile && ! tc-is-cross-compiler; } ; then
-				case ${ABI} in
-					sparc64)
+				case ${ABI}:${CTARGET} in
+					sparc64:*|\
+					default:sparc64*)
 						filter-flags -Wa,-xarch -Wa,-A
 
 						if is-flagq "-mcpu=niagara2" && [[ ${GLIBCMAJOR}.${GLIBCMINOR} > 2.7 ]] ; then






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-03-10  8:04 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-10  8:04 UTC (permalink / raw
  To: gentoo-commits

vapier      11/03/10 08:04:16

  Modified:             common.eblit
  Log:
  Split out the target-specific flag munging into its own func to make the common logic easier to understand, and skip it altogether for headers targets since we wont have a compiler which can accept the flags in the first place.
  
  (Portage version: 2.2.0_alpha26/cvs/Linux x86_64)

Revision  Changes    Path
1.16                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.15&r2=1.16

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- common.eblit	10 Mar 2011 07:35:38 -0000	1.15
+++ common.eblit	10 Mar 2011 08:04:16 -0000	1.16
@@ -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.15 2011/03/10 07:35:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.16 2011/03/10 08:04:16 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -39,34 +39,10 @@
 	fi
 }
 
-setup_flags() {
-	# Make sure host make.conf doesn't pollute us
-	if is_crosscompile || tc-is-cross-compiler ; then
-		CHOST=${CTARGET} strip-unsupported-flags
-	fi
-
-	# Store our CFLAGS because it's changed depending on which CTARGET
-	# we are building when pulling glibc on a multilib profile
-	CFLAGS_BASE=${CFLAGS_BASE-${CFLAGS}}
-	CFLAGS=${CFLAGS_BASE}
-	CXXFLAGS_BASE=${CXXFLAGS_BASE-${CXXFLAGS}}
-	CXXFLAGS=${CXXFLAGS_BASE}
-	ASFLAGS_BASE=${ASFLAGS_BASE-${ASFLAGS}}
-	ASFLAGS=${ASFLAGS_BASE}
-
-	# Over-zealous CFLAGS can often cause problems.  What may work for one
-	# person may not work for another.  To avoid a large influx of bugs
-	# relating to failed builds, we strip most CFLAGS out to ensure as few
-	# problems as possible.
-	strip-flags
-	strip-unsupported-flags
-	filter-flags -m32 -m64 -mabi=*
-
-	unset CBUILD_OPT CTARGET_OPT
-	if has_multilib_profile ; then
-		CTARGET_OPT=$(get_abi_CTARGET)
-		[[ -z ${CTARGET_OPT} ]] && CTARGET_OPT=$(get_abi_CHOST)
-	fi
+setup_target_flags() {
+	# This largely mucks with compiler flags.  None of which should matter
+	# when building up just the headers.
+	just_headers && return 0
 
 	case $(tc-arch) in
 		x86)
@@ -155,6 +131,38 @@
 			fi
 		;;
 	esac
+}
+
+setup_flags() {
+	# Make sure host make.conf doesn't pollute us
+	if is_crosscompile || tc-is-cross-compiler ; then
+		CHOST=${CTARGET} strip-unsupported-flags
+	fi
+
+	# Store our CFLAGS because it's changed depending on which CTARGET
+	# we are building when pulling glibc on a multilib profile
+	CFLAGS_BASE=${CFLAGS_BASE-${CFLAGS}}
+	CFLAGS=${CFLAGS_BASE}
+	CXXFLAGS_BASE=${CXXFLAGS_BASE-${CXXFLAGS}}
+	CXXFLAGS=${CXXFLAGS_BASE}
+	ASFLAGS_BASE=${ASFLAGS_BASE-${ASFLAGS}}
+	ASFLAGS=${ASFLAGS_BASE}
+
+	# Over-zealous CFLAGS can often cause problems.  What may work for one
+	# person may not work for another.  To avoid a large influx of bugs
+	# relating to failed builds, we strip most CFLAGS out to ensure as few
+	# problems as possible.
+	strip-flags
+	strip-unsupported-flags
+	filter-flags -m32 -m64 -mabi=*
+
+	unset CBUILD_OPT CTARGET_OPT
+	if has_multilib_profile ; then
+		CTARGET_OPT=$(get_abi_CTARGET)
+		[[ -z ${CTARGET_OPT} ]] && CTARGET_OPT=$(get_abi_CHOST)
+	fi
+
+	setup_target_flags
 
 	if [[ -n ${CTARGET_OPT} && ${CBUILD} == ${CHOST} ]] && ! is_crosscompile; then
 		CBUILD_OPT=${CTARGET_OPT}






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-03-18 20:24 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-18 20:24 UTC (permalink / raw
  To: gentoo-commits

vapier      11/03/18 20:24:03

  Modified:             common.eblit
  Log:
  Stick the ABI flags into CC so that they are used at all steps -- compiler, assemble, and link.

Revision  Changes    Path
1.17                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.17&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.17&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.16&r2=1.17

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- common.eblit	10 Mar 2011 08:04:16 -0000	1.16
+++ common.eblit	18 Mar 2011 20:24:03 -0000	1.17
@@ -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 @@
 	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() {






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-03-20 21:25 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-20 21:25 UTC (permalink / raw
  To: gentoo-commits

vapier      11/03/20 21:25:49

  Modified:             common.eblit
  Log:
  drop unused use_multilib func

Revision  Changes    Path
1.18                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.18&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.18&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.17&r2=1.18

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- common.eblit	18 Mar 2011 20:24:03 -0000	1.17
+++ common.eblit	20 Mar 2011 21:25:49 -0000	1.18
@@ -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.17 2011/03/18 20:24:03 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.18 2011/03/20 21:25:49 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -244,14 +244,6 @@
 	return ${WANT__THREAD}
 }
 
-use_multilib() {
-	case ${CTARGET} in
-		sparc*|mips64*|x86_64*|powerpc64*|s390x*)
-			has_multilib_profile || use multilib ;;
-		*)  false ;;
-	esac
-}
-
 use_multiarch() {
 	# Make sure binutils is new enough to support indirect functions #336792
 	local bver=$($(tc-getLD ${CTARGET}) -v | awk '{print $NF}') nver






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-03-20 21:28 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-20 21:28 UTC (permalink / raw
  To: gentoo-commits

vapier      11/03/20 21:28:51

  Modified:             common.eblit
  Log:
  drop CFLAGS_x86 forcing since the affected profiles dont exist anymore #265237 by Nick Fortino
  
  (Portage version: 2.2.0_alpha26/cvs/Linux x86_64)

Revision  Changes    Path
1.19                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.19&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.19&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.18&r2=1.19

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- common.eblit	20 Mar 2011 21:25:49 -0000	1.18
+++ common.eblit	20 Mar 2011 21:28:51 -0000	1.19
@@ -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.18 2011/03/20 21:25:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.19 2011/03/20 21:28:51 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -55,9 +55,6 @@
 			fi
 		;;
 		amd64)
-			# Punt this when amd64's 2004.3 is removed
-			CFLAGS_x86="-m32"
-
 			# -march needed for #185404
 			local t=${CTARGET_OPT:-${CTARGET}}
 			t=${t%%-*}






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-03-20 22:39 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-20 22:39 UTC (permalink / raw
  To: gentoo-commits

vapier      11/03/20 22:39:12

  Modified:             common.eblit
  Log:
  Make sure the forced CC comes from the target and not the host so cross-compiling picks up the right value.
  
  (Portage version: 2.2.0_alpha26/cvs/Linux x86_64)

Revision  Changes    Path
1.21                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.21&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.21&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.20&r2=1.21

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- common.eblit	20 Mar 2011 22:23:47 -0000	1.20
+++ common.eblit	20 Mar 2011 22:39:12 -0000	1.21
@@ -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.20 2011/03/20 22:23:47 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.21 2011/03/20 22:39:12 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -281,7 +281,7 @@
 	# 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)}
+	: ${__GLIBC_CC:=$(tc-getCC ${CTARGET_OPT:-${CTARGET}})}
 	export __GLIBC_CC CC="${__GLIBC_CC} ${!VAR}"
 }
 






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-08-19 23:03 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-08-19 23:03 UTC (permalink / raw
  To: gentoo-commits

vapier      11/08/19 23:03:11

  Modified:             common.eblit
  Log:
  Make sync_fetch_and_add warnings a little more user friendly.
  
  (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)

Revision  Changes    Path
1.22                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.22&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.22&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.21&r2=1.22

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- common.eblit	20 Mar 2011 22:39:12 -0000	1.21
+++ common.eblit	19 Aug 2011 23:03:11 -0000	1.22
@@ -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 @@
 	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)






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2011-11-17 21:22 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2011-11-17 21:22 UTC (permalink / raw
  To: gentoo-commits

vapier      11/11/17 21:22:53

  Modified:             common.eblit
  Log:
  When we filter flags, make sure we update CFLAGS_x86 to avoid endlessly appending it as reported by Anush Elangovan.
  
  (Portage version: 2.2.0_alpha74/cvs/Linux x86_64)

Revision  Changes    Path
1.24                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.24&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.24&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.23&r2=1.24

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- common.eblit	16 Nov 2011 16:07:46 -0000	1.23
+++ common.eblit	17 Nov 2011 21:22:53 -0000	1.24
@@ -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.23 2011/11/16 16:07:46 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.24 2011/11/17 21:22:53 vapier Exp $
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform
@@ -61,6 +61,8 @@
 				local t=${CTARGET_OPT:-${CTARGET}}
 				t=${t%%-*}
 				filter-flags '-march=*'
+				# ugly, ugly, ugly.  ugly.
+				CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
 				export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
 				einfo "Auto adding -march=${t} to CFLAGS_x86 #185404"
 			fi






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2012-06-19 22:06 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2012-06-19 22:06 UTC (permalink / raw
  To: gentoo-commits

vapier      12/06/19 22:06:23

  Modified:             common.eblit
  Log:
  Handle gold version strings too.
  
  (Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

Revision  Changes    Path
1.27                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.27&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.27&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.26&r2=1.27

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- common.eblit	1 Jun 2012 17:49:18 -0000	1.26
+++ common.eblit	19 Jun 2012 22:06:23 -0000	1.27
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 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.26 2012/06/01 17:49:18 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.27 2012/06/19 22:06:23 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -241,7 +241,9 @@
 
 use_multiarch() {
 	# Make sure binutils is new enough to support indirect functions #336792
-	local bver=$($(tc-getLD ${CTARGET}) -v | awk '{print $NF}') nver
+	# This funky sed supports gold and bfd linkers.
+	local bver nver
+	bver=$($(tc-getLD ${CTARGET}) -v | sed -n -r '1{s:[^0-9]*::;s:^([0-9.]*).*:\1:;p}')
 	case $(tc-arch ${CTARGET}) in
 		amd64|x86) nver="2.20" ;;
 		sparc)     nver="2.21" ;;






^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2012-08-10 19:44 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2012-08-10 19:44 UTC (permalink / raw
  To: gentoo-commits

vapier      12/08/10 19:44:48

  Modified:             common.eblit
  Log:
  Stop adding -U_FORTIFY_SOURCE for glibc-2.16+ since upstream does this automatically now.

Revision  Changes    Path
1.28                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.28&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.28&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.27&r2=1.28

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- common.eblit	19 Jun 2012 22:06:23 -0000	1.27
+++ common.eblit	10 Aug 2012 19:44:47 -0000	1.28
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 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.27 2012/06/19 22:06:23 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.28 2012/08/10 19:44:47 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -170,8 +170,9 @@
 	filter-flags -O?
 	append-flags -O2 -fno-strict-aliasing
 
-	# Cant build glibc itself with fortify code
-	append-cppflags -U_FORTIFY_SOURCE
+	# Can't build glibc itself with fortify code.  Newer versions add
+	# this flag for us, so no need to do it manually.
+	version_is_at_least 2.16 ${PV} || append-cppflags -U_FORTIFY_SOURCE
 
 	# building glibc with SSP is fraught with difficulty, especially
 	# due to __stack_chk_fail_local which would mean significant changes





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2013-10-30 17:04 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2013-10-30 17:04 UTC (permalink / raw
  To: gentoo-commits

vapier      13/10/30 17:04:34

  Modified:             common.eblit
  Log:
  Add ifunc checks for arm/hppa/ppc/s390.
  
  (Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)

Revision  Changes    Path
1.31                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.31&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.31&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.30&r2=1.31

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- common.eblit	29 Jun 2013 03:22:32 -0000	1.30
+++ common.eblit	30 Oct 2013 17:04:33 -0000	1.31
@@ -1,6 +1,6 @@
 # Copyright 1999-2013 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.30 2013/06/29 03:22:32 heroxbd Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.31 2013/10/30 17:04:33 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -249,9 +249,13 @@
 	local bver nver
 	bver=$($(tc-getLD ${CTARGET}) -v | sed -n -r '1{s:[^0-9]*::;s:^([0-9.]*).*:\1:;p}')
 	case $(tc-arch ${CTARGET}) in
-		amd64|x86) nver="2.20" ;;
-		sparc)     nver="2.21" ;;
-		*)         return 1 ;;
+	amd64|x86) nver="2.20" ;;
+	arm)       nver="2.22" ;;
+	hppa)      nver="2.23" ;;
+	ppc|ppc64) nver="2.20" ;;
+	s390)      nver="2.23" ;;
+	sparc)     nver="2.21" ;;
+	*)         return 1 ;;
 	esac
 	version_is_at_least ${nver} ${bver}
 }





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2014-01-05  3:11 Mike Gilbert (floppym)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Gilbert (floppym) @ 2014-01-05  3:11 UTC (permalink / raw
  To: gentoo-commits

floppym     14/01/05 03:11:14

  Modified:             common.eblit
  Log:
  Filter -frecord-gcc-switches, bug 492892.
  
  (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)

Revision  Changes    Path
1.32                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.32&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.32&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.31&r2=1.32

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- common.eblit	30 Oct 2013 17:04:33 -0000	1.31
+++ common.eblit	5 Jan 2014 03:11:13 -0000	1.32
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 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.31 2013/10/30 17:04:33 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.32 2014/01/05 03:11:13 floppym Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -156,6 +156,9 @@
 	strip-unsupported-flags
 	filter-flags -m32 -m64 -mabi=*
 
+	# Bug 492892.
+	filter-flags -frecord-gcc-switches
+
 	unset CBUILD_OPT CTARGET_OPT
 	if has_multilib_profile ; then
 		CTARGET_OPT=$(get_abi_CTARGET)





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2014-01-10 15:18 Magnus Granberg (zorry)
  0 siblings, 0 replies; 31+ messages in thread
From: Magnus Granberg (zorry) @ 2014-01-10 15:18 UTC (permalink / raw
  To: gentoo-commits

zorry       14/01/10 15:18:19

  Modified:             common.eblit
  Log:
  Remove use hardened from the ssp check #484714
  
  (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key FD79807F)

Revision  Changes    Path
1.33                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.33&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.33&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.32&r2=1.33

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- common.eblit	5 Jan 2014 03:11:13 -0000	1.32
+++ common.eblit	10 Jan 2014 15:18:19 -0000	1.33
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 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.32 2014/01/05 03:11:13 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.33 2014/01/10 15:18:19 zorry Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -183,7 +183,7 @@
 	# building glibc with SSP is fraught with difficulty, especially
 	# due to __stack_chk_fail_local which would mean significant changes
 	# to the glibc build process. See bug #94325 #293721
-	use hardened && gcc-specs-ssp && append-cflags $(test-flags-CC -fno-stack-protector)
+	gcc-specs-ssp && append-cflags $(test-flags-CC -fno-stack-protector)
 
 	if use hardened && gcc-specs-pie ; then
 		# Force PIC macro definition for all compilations since they're all





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2014-01-16 17:38 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2014-01-16 17:38 UTC (permalink / raw
  To: gentoo-commits

vapier      14/01/16 17:38:31

  Modified:             common.eblit
  Log:
  Require binutils-2.24+ for ifunc support on s390.
  
  (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

Revision  Changes    Path
1.34                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.34&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.34&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.33&r2=1.34

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- common.eblit	10 Jan 2014 15:18:19 -0000	1.33
+++ common.eblit	16 Jan 2014 17:38:31 -0000	1.34
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 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.33 2014/01/10 15:18:19 zorry Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.34 2014/01/16 17:38:31 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -256,7 +256,8 @@
 	arm)       nver="2.22" ;;
 	hppa)      nver="2.23" ;;
 	ppc|ppc64) nver="2.20" ;;
-	s390)      nver="2.23" ;;
+	# ifunc was added in 2.23, but glibc also needs machinemode which is in 2.24.
+	s390)      nver="2.24" ;;
 	sparc)     nver="2.21" ;;
 	*)         return 1 ;;
 	esac





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2014-06-14  8:07 Ryan Hill (rhill)
  0 siblings, 0 replies; 31+ messages in thread
From: Ryan Hill (rhill) @ 2014-06-14  8:07 UTC (permalink / raw
  To: gentoo-commits

rhill       14/06/14 08:07:11

  Modified:             common.eblit
  Log:
  Strip -fstack-protector*. These flags are now enabled by default so we can
  consider them supported. And even on systems where gcc-specs-ssp is true,
  having -fstack-protector in CFLAGS causes a failure because flags added
  here end up getting /pre/pended to user flags.
  
  Signed-off-by: Ryan Hill <rhill@gentoo.org>
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 957A8463)

Revision  Changes    Path
1.35                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.35&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.35&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.34&r2=1.35

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- common.eblit	16 Jan 2014 17:38:31 -0000	1.34
+++ common.eblit	14 Jun 2014 08:07:10 -0000	1.35
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 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.34 2014/01/16 17:38:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.35 2014/06/14 08:07:10 rhill Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -183,7 +183,12 @@
 	# building glibc with SSP is fraught with difficulty, especially
 	# due to __stack_chk_fail_local which would mean significant changes
 	# to the glibc build process. See bug #94325 #293721
-	gcc-specs-ssp && append-cflags $(test-flags-CC -fno-stack-protector)
+	# Note we have to handle both user-given CFLAGS and gcc defaults via
+	# spec rules here.  We can't simply add -fno-stack-protector as it gets
+	# added before user flags, and we can't just filter-flags because
+	# _filter_hardened doesn't support globs.
+	filter-flags -fstack-protector*
+	gcc-specs-ssp && append-flags $(test-flags -fno-stack-protector)
 
 	if use hardened && gcc-specs-pie ; then
 		# Force PIC macro definition for all compilations since they're all





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2014-07-28  5:46 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2014-07-28  5:46 UTC (permalink / raw
  To: gentoo-commits

vapier      14/07/28 05:46:16

  Modified:             common.eblit
  Log:
  Drop arch nptl logic as it only applies to really old versions of glibc now (linuxthreads) #518048 by Chase Rayfield.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

Revision  Changes    Path
1.36                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.36&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.36&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.35&r2=1.36

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- common.eblit	14 Jun 2014 08:07:10 -0000	1.35
+++ common.eblit	28 Jul 2014 05:46:16 -0000	1.36
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 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.35 2014/06/14 08:07:10 rhill Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.36 2014/07/28 05:46:16 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -206,15 +206,8 @@
 	want_tls || return 1
 	use nptl || return 1
 
-	# Only list the arches that cannot do NPTL
-	case $(tc-arch) in
-		m68k) return 1;;
-		sparc)
-			# >= v9 is needed for nptl.
-			[[ ${PROFILE_ARCH} == "sparc" ]] && return 1
-		;;
-	esac
-
+	# Older versions of glibc had incomplete arch support for nptl.
+	# But if you're building those now, you can handle USE=nptl yourself.
 	return 0
 }
 





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2014-08-21 13:59 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2014-08-21 13:59 UTC (permalink / raw
  To: gentoo-commits

vapier      14/08/21 13:59:18

  Modified:             common.eblit
  Log:
  Only set ED/EROOT when using old EAPIs.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

Revision  Changes    Path
1.37                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.37&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.37&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.36&r2=1.37

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- common.eblit	28 Jul 2014 05:46:16 -0000	1.36
+++ common.eblit	21 Aug 2014 13:59:18 -0000	1.37
@@ -1,13 +1,15 @@
 # Copyright 1999-2014 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.36 2014/07/28 05:46:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.37 2014/08/21 13:59:18 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
 }
 
-: ${ED:=${D}}
-: ${EROOT:=${ROOT}}
+if [[ ${EAPI:-0} == [012] ]] ; then
+	: ${ED:=${D}}
+	: ${EROOT:=${ROOT}}
+fi
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2014-09-10 19:15 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2014-09-10 19:15 UTC (permalink / raw
  To: gentoo-commits

vapier      14/09/10 19:15:42

  Modified:             common.eblit
  Log:
  Use SYSROOT when looking for source rather than ROOT #473728 by Benda Xu.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

Revision  Changes    Path
1.41                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.41&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.41&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.40&r2=1.41

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- common.eblit	10 Sep 2014 18:15:55 -0000	1.40
+++ common.eblit	10 Sep 2014 19:15:42 -0000	1.41
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 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.40 2014/09/10 18:15:55 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.41 2014/09/10 19:15:42 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -23,7 +23,7 @@
 	if [[ -z ${ALT_BUILD_HEADERS} ]] ; then
 		ALT_BUILD_HEADERS=$(alt_headers)
 		if tc-is-cross-compiler ; then
-			ALT_BUILD_HEADERS=${ROOT}$(alt_headers)
+			ALT_BUILD_HEADERS=${SYSROOT}$(alt_headers)
 			if [[ ! -e ${ALT_BUILD_HEADERS}/linux/version.h ]] ; then
 				local header_path=$(echo '#include <linux/version.h>' | $(tc-getCPP ${CTARGET}) ${CFLAGS} 2>&1 | grep -o '[^"]*linux/version.h')
 				ALT_BUILD_HEADERS=${header_path%/linux/version.h}





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2014-10-18 23:09 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2014-10-18 23:09 UTC (permalink / raw
  To: gentoo-commits

vapier      14/10/18 23:09:51

  Modified:             common.eblit
  Log:
  Tweak nonfatal wrapping #523332#9 by Alexander Tsoy.
  
  (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

Revision  Changes    Path
1.45                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.45&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.45&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.44&r2=1.45

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- common.eblit	17 Oct 2014 17:30:04 -0000	1.44
+++ common.eblit	18 Oct 2014 23:09:51 -0000	1.45
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 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.44 2014/10/17 17:30:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.45 2014/10/18 23:09:51 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -10,12 +10,12 @@
 	: ${ED:=${D}}
 	: ${EROOT:=${ROOT}}
 fi
+# This indirection is for binpkgs. #523332
+_nonfatal() { nonfatal "$@" ; }
 if [[ ${EAPI:-0} == [0123] ]] ; then
 	nonfatal() { "$@" ; }
 	_nonfatal() { "$@" ; }
 fi
-# This indirection is for binpkgs. #523332
-_nonfatal() { nonfatal "$@" ; }
 
 # We need to be able to set alternative headers for
 # compiling for non-native platform





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2015-05-30  4:30 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2015-05-30  4:30 UTC (permalink / raw
  To: gentoo-commits

vapier      15/05/30 04:30:58

  Modified:             common.eblit
  Log:
  Fix -march setting when building x86 multilib on x86_64 #528708 by devsk. Also note some future work related to bootstrapping here.
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

Revision  Changes    Path
1.46                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.46&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.46&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.45&r2=1.46

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- common.eblit	18 Oct 2014 23:09:51 -0000	1.45
+++ common.eblit	30 May 2015 04:30:58 -0000	1.46
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 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.45 2014/10/18 23:09:51 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.46 2015/05/30 04:30:58 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -58,6 +58,13 @@
 	case $(tc-arch) in
 		x86)
 			# -march needed for #185404 #199334
+			# TODO: When creating the first glibc cross-compile, this test will
+			# always fail as it does a full link which in turn requires glibc.
+			# Probably also applies when changing multilib profile settings (e.g.
+			# enabling x86 when the profile was amd64-only previously).
+			# We could change main to _start and pass -nostdlib here so that we
+			# only test the gcc code compilation.  Or we could do a compile and
+			# then look for the symbol via scanelf.
 			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%%-*}
@@ -68,9 +75,15 @@
 		;;
 		amd64)
 			# -march needed for #185404 #199334
+			# Note: This test only matters when the x86 ABI is enabled, so we could
+			# optimize a bit and elide it.
+			# TODO: See cross-compile issues listed above for x86.
 			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%%-*}
+				# Normally the target is x86_64-xxx, so turn that into the -march that
+				# gcc actually accepts. #528708
+				[[ ${t} == "x86_64" ]] && t="x86-64"
 				filter-flags '-march=*'
 				# ugly, ugly, ugly.  ugly.
 				CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")





^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit
@ 2015-05-30  5:28 Mike Frysinger (vapier)
  0 siblings, 0 replies; 31+ messages in thread
From: Mike Frysinger (vapier) @ 2015-05-30  5:28 UTC (permalink / raw
  To: gentoo-commits

vapier      15/05/30 05:28:41

  Modified:             common.eblit
  Log:
  Filter out -Wl,--hash-style=gnu for mips targets.

Revision  Changes    Path
1.47                 sys-libs/glibc/files/eblits/common.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.47&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?rev=1.47&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit?r1=1.46&r2=1.47

Index: common.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- common.eblit	30 May 2015 04:30:58 -0000	1.46
+++ common.eblit	30 May 2015 05:28:41 -0000	1.47
@@ -1,6 +1,6 @@
 # Copyright 1999-2015 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.46 2015/05/30 04:30:58 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.47 2015/05/30 05:28:41 vapier Exp $
 
 alt_prefix() {
 	is_crosscompile && echo /usr/${CTARGET}
@@ -91,6 +91,10 @@
 				einfo "Auto adding -march=${t} to CFLAGS_x86 #185404"
 			fi
 		;;
+		mips)
+			# The mips abi cannot support the GNU style hashes. #233233
+			filter-ldflags -Wl,--hash-style=gnu -Wl,--hash-style=both
+		;;
 		ppc)
 			append-flags "-freorder-blocks"
 		;;





^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2015-05-30  5:28 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-16  1:43 [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: common.eblit Magnus Granberg (zorry)
  -- strict thread matches above, loose matches on Subject: below --
2015-05-30  5:28 Mike Frysinger (vapier)
2015-05-30  4:30 Mike Frysinger (vapier)
2014-10-18 23:09 Mike Frysinger (vapier)
2014-09-10 19:15 Mike Frysinger (vapier)
2014-08-21 13:59 Mike Frysinger (vapier)
2014-07-28  5:46 Mike Frysinger (vapier)
2014-06-14  8:07 Ryan Hill (rhill)
2014-01-16 17:38 Mike Frysinger (vapier)
2014-01-10 15:18 Magnus Granberg (zorry)
2014-01-05  3:11 Mike Gilbert (floppym)
2013-10-30 17:04 Mike Frysinger (vapier)
2012-08-10 19:44 Mike Frysinger (vapier)
2012-06-19 22:06 Mike Frysinger (vapier)
2011-11-17 21:22 Mike Frysinger (vapier)
2011-08-19 23:03 Mike Frysinger (vapier)
2011-03-20 22:39 Mike Frysinger (vapier)
2011-03-20 21:28 Mike Frysinger (vapier)
2011-03-20 21:25 Mike Frysinger (vapier)
2011-03-18 20:24 Mike Frysinger (vapier)
2011-03-10  8:04 Mike Frysinger (vapier)
2011-03-10  7:35 Mike Frysinger (vapier)
2011-03-10  6:50 Mike Frysinger (vapier)
2011-03-09  8:10 Mike Frysinger (vapier)
2009-12-01  4:57 Mike Frysinger (vapier)
2009-01-28 18:11 Mike Frysinger (vapier)
2008-12-23 11:59 Friedrich Oslage (bluebird)
2008-06-22 14:05 Friedrich Oslage (bluebird)
2007-11-18  3:28 Mike Frysinger (vapier)
2007-10-10 19:52 Mike Frysinger (vapier)
2007-10-07  3:18 Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox