summaryrefslogtreecommitdiffstats
path: root/patches/ppp-2.4.4/ppp-2.4.4-makefile-sysroot.diff
blob: 4bb78017d10b444a85db89c7002fdd254873944c (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Subject: pppd: make makefile sysroot aware
From: Marc Kleine-Budde <m.kleine-budde@pengutronix.de>

The pppd Makefile is not SYSROOT aware. This patch replaces all
occurrences of absolute paths by their corresponding SYSROOT relative
ones.

Signed-off-by: Marc Kleine-Budde <m.kleine-budde@pengutronix.de>

---
 pppd/Makefile.linux |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: pppd/Makefile.linux
===================================================================
--- pppd/Makefile.linux.orig
+++ pppd/Makefile.linux
@@ -96,8 +96,8 @@ endif
 
 # EAP SRP-SHA1
 ifdef USE_SRP
-CFLAGS	+= -DUSE_SRP -DOPENSSL -I/usr/local/ssl/include
-LIBS	+= -lsrp -L/usr/local/ssl/lib -lcrypto
+CFLAGS	+= -DUSE_SRP -DOPENSSL -I$(SYSROOT)/usr/ssl/include
+LIBS	+= -lsrp -L$(SYSROOT)/usr/ssl/lib -lcrypto
 TARGETS	+= srp-entry
 EXTRAINSTALL = $(INSTALL) -s -c -m 555 srp-entry $(BINDIR)/srp-entry
 MANPAGES += srp-entry.8
@@ -117,7 +117,7 @@ CFLAGS   += -DHAS_SHADOW
 #LIBS     += -lshadow $(LIBS)
 endif
 
-ifneq ($(wildcard /usr/include/crypt.h),)
+ifneq ($(wildcard $(SYSROOT)/usr/include/crypt.h),)
 CFLAGS  += -DHAVE_CRYPT_H=1
 LIBS	+= -lcrypt
 endif
@@ -169,7 +169,7 @@ LIBS	+= -ldl
 endif
 
 ifdef FILTER
-ifneq ($(wildcard /usr/include/pcap-bpf.h),)
+ifneq ($(wildcard $(SYSROOT)/usr/include/pcap-bpf.h),)
 LIBS    += -lpcap
 CFLAGS  += -DPPP_FILTER
 endif