From: Marc Kleine-Budde Date: Wed, 25 Jan 2012 17:50:07 +0100 Subject: [PATCH] pppd: make makefile sysroot aware 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 Signed-off-by: Sascha Hauer --- pppd/Makefile.linux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index f1b2c90bb510..8b88f2b4811d 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -100,8 +100,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/local/ssl/include +LIBS += -lsrp -L$(SYSROOT)/usr/local/ssl/lib -lcrypto TARGETS += srp-entry EXTRAINSTALL = $(INSTALL) -c -m 555 srp-entry $(BINDIR)/srp-entry MANPAGES += srp-entry.8 @@ -124,7 +124,7 @@ endif ifdef NO_CRYPT_HACK CFLAGS += -DNO_CRYPT_HACK else -ifneq ($(wildcard /usr/include/crypt.h),) +ifdef USE_CRYPT CFLAGS += -DHAVE_CRYPT_H=1 LIBS += -lcrypt endif