`pkg-config nss --libs` outputs "-Wl,-R/usr/lib64". not sure why this is there (we add it with our own patch), but .pc files should not be forcing RPATH's to the system library paths. i can't think of any reason why it would need this. so if there's no reason for this, the following patch should fix things: --- files/nss-3.12.5-gentoo-fixups.diff +++ files/nss-3.12.5-gentoo-fixups.diff @@ -204,7 +204,7 @@ +Description: Network Security Services +Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@ +Requires: nspr >= 4.8 -+Libs: -L${libdir} -lssl3 -lsmime3 -lnssutil3 -lnss3 -Wl,-R${libdir} ++Libs: -L${libdir} -lssl3 -lsmime3 -lnssutil3 -lnss3 +Cflags: -I${includedir} + --- files/nspr-4.8-pkgconfig-gentoo-3.patch +++ files/nspr-4.8-pkgconfig-gentoo-3.patch @@ -53,7 +53,7 @@ +Name: NSPR +Description: The Netscape Portable Runtime +Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@ -+Libs: -L${libdir} -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ -lpthread -Wl,-R${libdir} ++Libs: -L${libdir} -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ -lpthread +Cflags: -I${includedir} +
nspr-4.9 already contained the fix, I have just added nss-3.13.3 to the tree which drops the rpath flag out of the pkgconfig file thanks for your report.