From 11543475e322bf69bf102a4b8883cae7ad25f7b6 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 2 Apr 2017 13:53:56 -0700 Subject: [PATCH] uanytun: Pass down TARGET_CPPFLAGS Fixes build errors with toolchains that don't automatically search for headers in STAGING_DIR (such as external toolchains) resulting in the following build failures: mipsel-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -Wno-unused-result -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DUSE_SSL_CRYPTO -c options.c In file included from options.c:62:0: auth_algo.h:53:26: fatal error: openssl/hmac.h: No such file or directory #include ^ compilation terminated. Makefile:95: recipe for target 'options.o' failed make[4]: *** [options.o] Error 1 Signed-off-by: Florian Fainelli --- net/uanytun/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/uanytun/Makefile b/net/uanytun/Makefile index d9b8c987d..0812078eb 100644 --- a/net/uanytun/Makefile +++ b/net/uanytun/Makefile @@ -137,7 +137,7 @@ define Build/Compile $(TARGET_CONFIGURE_OPTS) \ $(VARIANT_MAKE_OPTS) \ TARGET=Linux \ - CFLAGS="$(TARGET_CFLAGS) $(VARIANT_CFLAGS)" \ + CFLAGS="$(TARGET_CFLAGS) $(VARIANT_CFLAGS) $(TARGET_CPPFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS) $(VARIANT_LDFLAGS)" $(STRIP) $(PKG_BUILD_DIR)/src/uanytun endef