summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-06-06 14:56:51 -0400
committerMike Gilbert <floppym@gentoo.org>2020-06-13 12:58:15 -0400
commit5ee8c9ea46a9e7caaac4a3dc84064be5d96d3963 (patch)
tree493ed2fbcb4761a497243c9afc8311e016ca123a /eclass/multilib.eclass
parentvirtual/pkgconfig: remove multilib USE flags (diff)
downloadgentoo-5ee8c9ea46a9e7caaac4a3dc84064be5d96d3963.tar.gz
gentoo-5ee8c9ea46a9e7caaac4a3dc84064be5d96d3963.tar.bz2
gentoo-5ee8c9ea46a9e7caaac4a3dc84064be5d96d3963.zip
multilib.eclass: export PKG_CONFIG_SYSTEM_LIBRARY_PATH in multilib_toolchain_setup
This ensures pkg-config --libs will filter -L/usr/lib from its output for non-native ABIs. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r--eclass/multilib.eclass2
1 files changed, 2 insertions, 0 deletions
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
}