From: Paul Mackerras Date: Sat, 19 Oct 2019 06:02:59 +0000 (+1100) Subject: pppd: Fix variable reference syntax in Makefile.linux X-Git-Tag: ppp-2.4.8~13 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=d00f8a0e184cc73b1ca33a9b22c1b1f87292a72f pppd: Fix variable reference syntax in Makefile.linux References to the variable called CC in makefiles need to be written as $(CC) not $CC. Make interprets the latter as a reference to the (nonexistent) variable C followed by a literal C. Fixes: 4e713175 ("make: Avoid using host include for cross-compiling") Signed-off-by: Paul Mackerras --- diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 12a986e..9664f70 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -125,7 +125,7 @@ CFLAGS += -DHAS_SHADOW #LIBS += -lshadow $(LIBS) endif -ifneq ($(wildcard $(shell $CC --print-sysroot)/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$(shell $CC --print-sysroot)/usr/include/openssl +CFLAGS += -I$(shell $(CC) --print-sysroot)/usr/include/openssl LIBS += -lcrypto else CFLAGS += -DUSE_CRYPT=1