diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-09-08 02:48:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-08 02:48:46 +0000 |
commit | abec94156062c976c2f9af7b16de12c020a9393b (patch) | |
tree | 3a7a7df6d6fb7c15b047d04fc2211b16e5529eb4 /eclass/toolchain.eclass | |
parent | Set SUPPORT_PYTHON_ABIS. (diff) | |
download | historical-abec94156062c976c2f9af7b16de12c020a9393b.tar.gz historical-abec94156062c976c2f9af7b16de12c020a9393b.tar.bz2 historical-abec94156062c976c2f9af7b16de12c020a9393b.zip |
fix by Peter Alfredsen for libdir tweaking in multilib .la files #283761
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index bc2ddb6fb1f5..01ac977a5f38 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.406 2009/08/26 21:47:56 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.407 2009/09/08 02:48:46 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1966,6 +1966,7 @@ gcc_movelibs() { fi fi done + fix_libtool_libdir_paths "${LIBPATH}/${MULTIDIR}" done # We remove directories separately to avoid this case: @@ -1976,8 +1977,6 @@ gcc_movelibs() { rmdir "${D}"${FROMDIR} >& /dev/null done find "${D}" -type d | xargs rmdir >& /dev/null - - fix_libtool_libdir_paths } #----<< src_* >>---- @@ -2483,9 +2482,11 @@ disable_multilib_libjava() { fix_libtool_libdir_paths() { pushd "${D}" >/dev/null - local dir=${LIBPATH} - local allarchives=$(cd ./${dir}; echo *.la) + pushd "${1}" >/dev/null + local dir="${PWD#${D}}" + local allarchives=$(echo *.la) allarchives="\(${allarchives// /\\|}\)" + popd >/dev/null sed -i \ -e "/^libdir=/s:=.*:='${dir}':" \ |