summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-03-22 10:30:26 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-03-22 10:30:26 +0000
commit0846b84c36fe88af8237f7ae303f956cbad8a9a8 (patch)
tree456b33e1268efbf5bd5b09d226ce382ea4f18a0f /eclass
parentMultilib cleanups and don't use einstall. Use proper toolchain CC. Added to... (diff)
downloadgentoo-2-0846b84c36fe88af8237f7ae303f956cbad8a9a8.tar.gz
gentoo-2-0846b84c36fe88af8237f7ae303f956cbad8a9a8.tar.bz2
gentoo-2-0846b84c36fe88af8237f7ae303f956cbad8a9a8.zip
Fix multilib LDPATH thanks to Dario Birtic. Closes bug #86218.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index c712e583895a..7c6b1356a7ee 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.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/toolchain.eclass,v 1.133 2005/03/21 06:01:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.134 2005/03/22 10:30:26 eradicator Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -613,7 +613,7 @@ create_gcc_env_entry() {
local abi=${DEFAULT_ABI}
local MULTIDIR=$(${XGCC} $(get_abi_CFLAGS ${abi}) --print-multi-directory)
- if [[ ${MULTIDIR} != "." ]] ; then
+ if [[ ${MULTIDIR} == "." ]] ; then
LDPATH="${LIBPATH}"
else
LDPATH="${LIBPATH}/${MULTIDIR}"
@@ -622,7 +622,8 @@ create_gcc_env_entry() {
for abi in $(get_all_abis) ; do
[[ ${abi} == ${DEFAULT_ABI} ]] && continue
- if [[ ${MULTIDIR} != "." ]] ; then
+ MULTIDIR=$(${XGCC} $(get_abi_CFLAGS ${abi}) --print-multi-directory)
+ if [[ ${MULTIDIR} == "." ]] ; then
LDPATH="${LDPATH}:${LIBPATH}"
else
LDPATH="${LDPATH}:${LIBPATH}/${MULTIDIR}"