X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2FMakefile.linux;h=a22dcfab9d74f9658a1522bada021a41249aa90d;hb=0678d3bf69116af58b00fbc64bd4185acb4d5c37;hp=8d5ce99d92202c4326730393c0d9e56d327fbefe;hpb=5c765a67fd25f9d84e71ed61ace37c8c97f6be15;p=ppp.git diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 8d5ce99..a22dcfa 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -33,7 +33,7 @@ endif # CC = gcc # COPTS = -O2 -pipe -Wall -g -LIBS = +LIBS = -lrt # Uncomment the next line to include support for Microsoft's # MS-CHAP authentication protocol. Also, edit plugins/radius/Makefile.linux. @@ -99,6 +99,7 @@ CFLAGS += -DMSLANMAN=1 endif ifdef MPPE CFLAGS += -DMPPE=1 +HEADERS += mppe.h endif endif @@ -125,7 +126,7 @@ CFLAGS += -DHAS_SHADOW #LIBS += -lshadow $(LIBS) endif -ifneq ($(wildcard /usr/include/crypt.h),) +ifneq ($(wildcard $(shell $(CC) --print-sysroot)/usr/include/crypt.h),) CFLAGS += -DHAVE_CRYPT_H=1 LIBS += -lcrypt endif @@ -137,7 +138,7 @@ endif ifdef NEEDDES ifndef USE_CRYPT -CFLAGS += -I/usr/include/openssl +CFLAGS += -I$(shell $(CC) --print-sysroot)/usr/include/openssl LIBS += -lcrypto else CFLAGS += -DUSE_CRYPT=1