This ensures pkg-config --libs will filter -L/usr/lib from its output for
non-native ABIs.

Signed-off-by: Mike Gilbert <flop...@gentoo.org>
---
 eclass/multilib.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index ed54568aa2d9..3503ac2ed5b7 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -472,6 +472,7 @@ multilib_toolchain_setup() {
                STRIP
                PKG_CONFIG_LIBDIR
                PKG_CONFIG_PATH
+               PKG_CONFIG_SYSTEM_LIBRARY_PATH
        )
 
        # First restore any saved state we have laying around.
@@ -516,6 +517,7 @@ multilib_toolchain_setup() {
                export CHOST=$(get_abi_CHOST $1)
                export PKG_CONFIG_LIBDIR=${EPREFIX}/usr/$(get_libdir)/pkgconfig
                export PKG_CONFIG_PATH=${EPREFIX}/usr/share/pkgconfig
+               export 
PKG_CONFIG_SYSTEM_LIBRARY_PATH=${EPREFIX}/usr/$(get_libdir)
        fi
 }
 
-- 
2.27.0.rc2


Reply via email to