summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-19 22:56:37 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-19 22:56:37 +0000
commitdf413429f9a844747d940859bf6446d0551da998 (patch)
tree705ef6713c0197a6b777efcc28f82a39827c1be4 /sys-libs
parentbash cleanup (diff)
downloadgentoo-2-df413429f9a844747d940859bf6446d0551da998.tar.gz
gentoo-2-df413429f9a844747d940859bf6446d0551da998.tar.bz2
gentoo-2-df413429f9a844747d940859bf6446d0551da998.zip
only PROVIDE virtual/libc when not cross-compiling
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild7
-rw-r--r--sys-libs/uclibc/uclibc-0.9.27.ebuild4
2 files changed, 6 insertions, 5 deletions
diff --git a/sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild b/sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild
index f7088cba7e52..40aef328826c 100644
--- a/sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild
+++ b/sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild,v 1.27 2005/03/16 23:26:14 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild,v 1.28 2005/03/19 22:56:37 vapier Exp $
# Here's how the cross-compile logic breaks down ...
# CTARGET - machine that will target the binaries
@@ -50,8 +50,6 @@ LICENSE="LGPL-2"
IUSE="nls pic build nptl nptlonly erandom hardened debug userlocales nomalloccheck multilib"
-PROVIDE="virtual/glibc virtual/libc"
-
export CBUILD=${CBUILD:-${CHOST}}
export CTARGET=${CTARGET:-${CHOST}}
if [[ ${CTARGET} == ${CHOST} ]] ; then
@@ -59,6 +57,9 @@ if [[ ${CTARGET} == ${CHOST} ]] ; then
export CTARGET=${CATEGORY/cross-}
fi
fi
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ PROVIDE="virtual/glibc virtual/libc"
+fi
is_crosscompile() {
[[ ${CHOST} != ${CTARGET} ]]
diff --git a/sys-libs/uclibc/uclibc-0.9.27.ebuild b/sys-libs/uclibc/uclibc-0.9.27.ebuild
index 287880d96f9b..11e961ecb57c 100644
--- a/sys-libs/uclibc/uclibc-0.9.27.ebuild
+++ b/sys-libs/uclibc/uclibc-0.9.27.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.27.ebuild,v 1.13 2005/03/14 23:01:35 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.27.ebuild,v 1.14 2005/03/19 22:56:07 vapier Exp $
inherit eutils flag-o-matic toolchain-funcs
@@ -43,7 +43,7 @@ RESTRICT="nostrip"
DEPEND="sys-devel/gcc
virtual/os-headers"
RDEPEND=""
-PROVIDE="virtual/libc"
+[[ ${CTARGET} == ${CHOST} ]] && PROVIDE="virtual/libc"
S=${WORKDIR}/${MY_P}