Subject: pppd: make makefile sysroot aware From: Marc Kleine-Budde 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 --- 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