blob: c9be5fd0ba3cfecf2879fd0e23e00ba149f9cbba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Subject: pppd: add crypt options if crypt is switched on
From: Robert Schwebel <r.schwebel@pengutronix.de>
Activate the crypt options (CFLAGS, LIBS) if USE_CRYPT is selected. The
current method is a bad idea, because it relies on the crypt.h header
being installed in a special place, which might not be the case.
The proper solution would probably be a real autotoolization of the
packet, with checks for availability in configure.ac.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
pppd/Makefile.linux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pppd/Makefile.linux
===================================================================
--- pppd/Makefile.linux.orig
+++ pppd/Makefile.linux
@@ -117,7 +117,7 @@ CFLAGS += -DHAS_SHADOW
#LIBS += -lshadow $(LIBS)
endif
-ifneq ($(wildcard $(SYSROOT)/usr/include/crypt.h),)
+ifdef USE_CRYPT
CFLAGS += -DHAVE_CRYPT_H=1
LIBS += -lcrypt
endif
|