[PATCH v4] When using the Mozilla NSS library for cryptography, include the NSPR header files

Guido Trentalancia guido@trentalancia.net
Sat Jun 11 11:56:00 GMT 2016


Hello Mike.

On Sat, 11/06/2016 at 02.04 -0400, Mike Frysinger wrote:
> On 31 May 2016 21:25, Guido Trentalancia wrote:
> > When configuring and building GNU libc using the Mozilla NSS
> > library
> > for cryptography (--enable-nss-crypt option), also include the
> > NSPR header files along with the Mozilla NSS library header files.
> > 
> > Finally, when running the check-local-headers test, ignore the
> > Mozilla NSPR library header files (used by the Mozilla NSS library)
> > as otherwise false positives (FAIL) are obtained.
> 
> imo, we should switch to pkg-config, and then probe nss via that.
> then we don't have to know or care about nspr requirements.
> -mike

Such approach suffers the same problem as the {nss,nspr}-config
scripts: you need to use pkg-config data from both NSS *and* NSPR in
order to get all the needed header files' paths.

So, it won't bring any added benefit, at the expense of increased
complexity: not advisable as a first choice in my opinion, perhaps only
as a fall-back choice if {nss,nspr}-config scripts are not available on
the system...

Regards,

Guido



More information about the Libc-alpha mailing list