Check image dir rather than filesystem for multilib paths so we get proper LDPATHs...
authorRyan Hill <rhill@gentoo.org>
Sat, 13 Aug 2011 03:09:40 +0000 (03:09 +0000)
committerRyan Hill <rhill@gentoo.org>
Sat, 13 Aug 2011 03:09:40 +0000 (03:09 +0000)
eclass/toolchain.eclass

index b04dcb84c0b91935cb87e1ebefee9f306e61dbb5..780e425dfbb979ade150a5233e03604b773649ed 100644 (file)
@@ -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.461 2011/07/08 11:35:01 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.462 2011/08/13 03:09:40 dirtyepic Exp $
 #
 # Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
 
@@ -695,7 +695,7 @@ create_gcc_env_entry() {
        if is_multilib ; then
                LDPATH="${LIBPATH}"
                for path in 32 64 ; do
-                       [[ -d ${LIBPATH}/${path} ]] && LDPATH="${LDPATH}:${LIBPATH}/${path}"
+                       [[ -d ${D}${LIBPATH}/${path} ]] && LDPATH="${LDPATH}:${LIBPATH}/${path}"
                done
        else
                local MULTIDIR