summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDaniel Ostrow <dostrow@gentoo.org>2005-07-06 02:09:40 +0000
committerDaniel Ostrow <dostrow@gentoo.org>2005-07-06 02:09:40 +0000
commit959d420d9602570c934bc338c0fa451b0651feb7 (patch)
treed49c37dff163539fd775c9c82acf9e0686d2c600 /eclass
parentRemove custom config stuff as asked in gentoo.config-0.9.7g - bug #98072 resp... (diff)
downloadgentoo-2-959d420d9602570c934bc338c0fa451b0651feb7.tar.gz
gentoo-2-959d420d9602570c934bc338c0fa451b0651feb7.tar.bz2
gentoo-2-959d420d9602570c934bc338c0fa451b0651feb7.zip
Ugly hack to get around a 32-bit userland with ppc64 kernel on ppc64. Will be removed once something more reasonalbe rears it's head.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index e0fb4fff2a50..a91905ec9e4d 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -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/eclass/kernel-2.eclass,v 1.131 2005/07/02 04:37:17 dostrow Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.132 2005/07/06 02:09:40 dostrow Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -62,6 +62,11 @@ INHERITED="$INHERITED $ECLASS"
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install \
pkg_preinst pkg_postinst pkg_prerm
+# Added by Daniel Ostrow <dostrow@gentoo.org>
+# This is an ugly hack to get around an issue with a 32-bit userland on ppc64.
+# I will remove it when I come up with something more reasonable.
+[[ ${PROFILE_ARCH} == 'ppc64' ]] && CHOST='powerpc64-unknown-linux-gnu'
+
export CTARGET=${CTARGET:-${CHOST}}
if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then
export CTARGET=${CATEGORY/cross-}