X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2FMakefile.linux;h=9664f70989965a6e768434b529e04d5cd244fc7d;hb=56371803b11c557e07ae968bef34b178b518139d;hp=8d5ce99d92202c4326730393c0d9e56d327fbefe;hpb=3c7b86229f7bd2600d74db14b1fe5b3896be3875;p=ppp.git diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 8d5ce99..9664f70 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -125,7 +125,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 +137,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