]> git.pld-linux.org Git - packages/glibc.git/blame - glibc-nss_include_dirs.patch
- rel 2; branch diff updated
[packages/glibc.git] / glibc-nss_include_dirs.patch
CommitLineData
6eae7d17
JP
1--- configure.ac.orig 2014-09-27 12:55:02.445395745 +0200
2+++ configure.ac 2014-09-27 12:55:39.848729357 +0200
3@@ -277,10 +277,7 @@
4 [nss_crypt=$enableval],
5 [nss_crypt=no])
6 if test x$nss_crypt = xyes; then
7- nss_includes=-I$(nss-config --includedir 2>/dev/null)
8- if test $? -ne 0; then
9- AC_MSG_ERROR([cannot find include directory with nss-config])
10- fi
11+ nss_includes='-I/usr/include/nss -I/usr/include/nspr'
12 old_CFLAGS="$CFLAGS"
13 CFLAGS="$CFLAGS $nss_includes"
14 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([typedef int PRBool;
15--- crypt/Makefile.orig 2014-09-27 13:04:28.422466311 +0200
16+++ crypt/Makefile 2014-09-27 13:05:00.672466567 +0200
17@@ -37,9 +37,9 @@
18 endif
19
20 ifeq ($(nss-crypt),yes)
21-CPPFLAGS-sha256-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
22-CPPFLAGS-sha512-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
23-CPPFLAGS-md5-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
24+CPPFLAGS-sha256-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
25+CPPFLAGS-sha512-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
26+CPPFLAGS-md5-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
27 LDLIBS-crypt.so = -lfreebl3
28 else
29 libcrypt-routines += md5 sha256 sha512
This page took 0.301673 seconds and 4 git commands to generate.