summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-07-23 16:32:13 +0000
committerMike Frysinger <vapier@gentoo.org>2007-07-23 16:32:13 +0000
commit5ca4963c5207622f4cd2f7fe66d6e35a3721ce1e (patch)
tree08cb5134f36213bc9c29297a35f477a05e8793b1 /eclass
parentadd a generic -P,--portage option for people (diff)
downloadgentoo-2-5ca4963c5207622f4cd2f7fe66d6e35a3721ce1e.tar.gz
gentoo-2-5ca4963c5207622f4cd2f7fe66d6e35a3721ce1e.tar.bz2
gentoo-2-5ca4963c5207622f4cd2f7fe66d6e35a3721ce1e.zip
start enabling --enable-secureplt when possible for alpha
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-binutils.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index cecf0d5abf9e..4af9df13f5c8 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -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/eclass/toolchain-binutils.eclass,v 1.75 2007/06/28 14:44:08 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.76 2007/07/23 16:32:13 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
#
@@ -201,8 +201,10 @@ toolchain-binutils_src_compile() {
use multitarget && myconf="${myconf} --enable-targets=all"
[[ -n ${CBUILD} ]] && myconf="${myconf} --build=${CBUILD}"
is_cross && myconf="${myconf} --with-sysroot=/usr/${CTARGET}"
-# glibc-2.3.6 lacks support for this ...
-# --enable-secureplt <- this is an alpha-only option
+ # glibc-2.3.6 lacks support for this ... so rather than force glibc-2.5+
+ # on everyone in alpha (for now), we'll just enable it when possible
+ has_version ">=${CATEGORY}/glibc-2.5" && myconf="${myconf} --enable-secureplt"
+ has_version ">=sys-libs/glibc-2.5" && myconf="${myconf} --enable-secureplt"
myconf="--prefix=/usr \
--host=${CHOST} \
--target=${CTARGET} \