summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-14 13:02:08 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-14 13:02:08 +0000
commit831edef8c7b7ed7cc18b5d6f79ad590a8bca5d7a (patch)
tree6a4bb03c59e316cffad82b5b7f44898d8f872697 /eclass/libtool.eclass
parentosmosis bump (diff)
downloadhistorical-831edef8c7b7ed7cc18b5d6f79ad590a8bca5d7a.tar.gz
historical-831edef8c7b7ed7cc18b5d6f79ad590a8bca5d7a.tar.bz2
historical-831edef8c7b7ed7cc18b5d6f79ad590a8bca5d7a.zip
start an elibtoolize cross category #262042 by Sven Rebhan.
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r--eclass/libtool.eclass12
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index 29251aa430e3..ef928eddbcb7 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.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/libtool.eclass,v 1.81 2008/07/31 20:01:43 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.82 2009/03/14 13:02:08 vapier Exp $
#
# Maintainer: base-system@gentoo.org
#
@@ -15,6 +15,8 @@ DESCRIPTION="Based on the ${ECLASS} eclass"
ELIBTOOL_VERSION="2.0.2"
+inherit toolchain-funcs
+
ELT_PATCH_DIR="${ECLASSDIR}/ELT-patches"
ELT_APPLIED_PATCHES=
ELT_LTMAIN_SH=
@@ -122,7 +124,7 @@ elibtoolize() {
local do_uclibc="yes"
local deptoremove=
local my_dirlist=
- local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp"
+ local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross"
local start_dir=${PWD}
my_dirlist=$(ELT_find_ltmain_sh)
@@ -265,6 +267,12 @@ elibtoolize() {
ELT_walk_patches "${x}/install-sh" "${y}"
ret=$?
;;
+ "cross")
+ if tc-is-cross-compiler ; then
+ ELT_walk_patches "${x}/ltmain.sh" "${y}"
+ ret=$?
+ fi
+ ;;
*)
ELT_walk_patches "${x}/ltmain.sh" "${y}"
ret=$?