Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306347 - dev-libs/nss-3.12.5-r1 to much output from "pkg-config --libs nss"
Summary: dev-libs/nss-3.12.5-r1 to much output from "pkg-config --libs nss"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-22 13:00 UTC by Xake
Modified: 2010-03-09 02:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2010-02-22 13:00:57 UTC
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...
Comment 1 Rafał Mużyło 2010-02-22 13:18:13 UTC
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.
Comment 2 Rafał Mużyło 2010-02-24 23:47:20 UTC
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).
Comment 3 Jory A. Pratt gentoo-dev 2010-03-09 02:00:13 UTC
nspr pkg-config entry has been updated. Thanks for your report.