summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2006-06-20 08:48:24 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2006-06-20 08:48:24 +0000
commit203d91997bf52c506ffab4b79e5208000fd5e210 (patch)
tree6c7d53a1850db4ad4788cb03a0e3b09d036a4d7a /eclass/multilib.eclass
parentAdded ASFLAGS for x86. (diff)
downloadgentoo-2-203d91997bf52c506ffab4b79e5208000fd5e210.tar.gz
gentoo-2-203d91997bf52c506ffab4b79e5208000fd5e210.tar.bz2
gentoo-2-203d91997bf52c506ffab4b79e5208000fd5e210.zip
Added multilib_toolchain_setup for app-emul/wine.
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r--eclass/multilib.eclass18
1 files changed, 16 insertions, 2 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index c566188f2dea..ec347c3519de 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.49 2006/05/28 19:31:33 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.50 2006/06/20 08:48:24 eradicator Exp $
#
# Author: Jeremy Huddleston <eradicator@gentoo.org>
#
@@ -193,9 +193,9 @@ get_abi_var() {
}
get_abi_CFLAGS() { get_abi_var CFLAGS "$@"; }
+get_abi_ASFLAGS() { get_abi_var ASFLAGS "$@"; }
get_abi_LDFLAGS() { get_abi_var LDFLAGS "$@"; }
get_abi_CHOST() { get_abi_var CHOST "$@"; }
-get_abi_CTARGET() { get_abi_var CTARGET "$@"; }
get_abi_FAKE_TARGETS() { get_abi_var FAKE_TARGETS "$@"; }
get_abi_CDEFINE() { get_abi_var CDEFINE "$@"; }
get_abi_LIBDIR() { get_abi_var LIBDIR "$@"; }
@@ -655,3 +655,17 @@ multilib_env() {
;;
esac
}
+
+# This is for the single package in the tree whose maintainer believes it is so important to
+# provide a compiled-from-source version before portage is able to support it (app-emul/wine)
+multilib_toolchain_setup() {
+ export ABI=$1
+
+ # Binutils doesn't have wrappers for ld and as (yet). Eventually it
+ # will, and all this can just be handled with CHOST.
+ export LD="ld $(get_abi_LDFLAGS)"
+ export AS="as $(get_abi_ASFLAGS)"
+
+ export CHOST=$(get_abi_CHOST)
+ export CBUILD=$(get_abi_CHOST)
+}