While building an custom project against nss, I got the following message: gcc: unrecognized option '-R/usr/lib64' It turns out that this is because tha project uses "pkg-config --libs 'nss', which on gentoo gives: -Wl,-R/usr/lib64 -R/usr/lib64 -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread I do not thing those first to entries (-Wl,-R/usr/lib64 -R/usr/lib64) should be there, the first does not do anything, the second is responsible for the message. Looking at fedora you only get -l* from pkg-config --libs nss...
Actually the '-R' part comes from nspr, however quite right - it should have probably been '-Wl,-R' in the first place and as those libs are in /usr/lib now, these options should be dropped from both nss and nspr.
Having thought about it, it probably shouldn't be there at all - path to the libs was added to ld.so.conf for that reason (I think).
nspr pkg-config entry has been updated. Thanks for your report.