mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
crypt: Use NSPR header files in addition to NSS header files [BZ #17956]
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).
This commit is contained in:
committed by
Florian Weimer
parent
64d1e08ea8
commit
57b4af1955
6
configure
vendored
6
configure
vendored
@ -3549,8 +3549,12 @@ if test x$nss_crypt = xyes; then
|
||||
if test $? -ne 0; then
|
||||
as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
|
||||
fi
|
||||
nspr_includes=-I$(nspr-config --includedir 2>/dev/null)
|
||||
if test $? -ne 0; then
|
||||
as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5
|
||||
fi
|
||||
old_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $nss_includes"
|
||||
CFLAGS="$CFLAGS $nss_includes $nspr_includes"
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
Reference in New Issue
Block a user