ebuild_main: prefix PKG_CONFIG_PATH, bug #485456
authorRuud Koolen <redlizard@redlizard.nl>
Fri, 20 Sep 2013 12:39:31 +0000 (05:39 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 20 Sep 2013 12:39:31 +0000 (05:39 -0700)
bin/phase-functions.sh

index 37503bf8bf493066ff2d6ef28dfea9ba8c126626..711b7211634251ce167a8013a6ab6001f75e2fd2 100644 (file)
@@ -917,7 +917,7 @@ __ebuild_main() {
 
                        x=LIBDIR_$ABI
                        [ -z "$PKG_CONFIG_PATH" -a -n "$ABI" -a -n "${!x}" ] && \
-                               export PKG_CONFIG_PATH=/usr/${!x}/pkgconfig
+                               export PKG_CONFIG_PATH=${EPREFIX}/usr/${!x}/pkgconfig
 
                        if has noauto $FEATURES && \
                                [[ ! -f $PORTAGE_BUILDDIR/.unpacked ]] ; then