[PATCH v4] When using the Mozilla NSS library for cryptography, include the NSPR header files
Florian Weimer
fweimer@redhat.com
Sat Jun 11 07:12:00 GMT 2016
On 06/11/2016 08:04 AM, 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.
Isn't using pkg-config in a GNU project a bit tricky?
In any case, Mozilla does not publish pkg-config data as far as I can
see, and downstreams probably vary in what they do. For example, Fedora
does not provide pkg-config data for libfreebl at all. You can link
against NSS, but then you also get libdl and libpthread, which we do not
want as dependencies of libgcrypt.
Florian
More information about the Libc-alpha
mailing list