The port of the dev-libs/libpcre ebuilds (both 7.9-r1 and 8.00) has an slightly broken src_prepare routine which breaks the pkg-config .pc files which get installed, and have the potential to break other packages which might use them. The line: sed -i -e "s:libdir=@libdir@:libdir=/$(get_libdir):" libpcre.pc.in || die "Fixing libpcre pkgconfig files failed" means that libdir gets set to just "/lib" and not EPREFIX/lib or EPREFIX/usr/lib. Removing this sed line entirely is good enough for Prefix, you will end up with something like: # Package Information for pkg-config prefix=/Users/mattm/gentoo/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: libpcre Description: PCRE - Perl compatible regular expressions C library Version: 8.00 Libs: -L${libdir} -lpcre Cflags: -I${includedir}
fixed, thanks