From 2a1906cf505e6d4d29b559f6a3d430c629f525a9 Mon Sep 17 00:00:00 2001 From: Andreas Pokorny Date: Thu, 26 Oct 2017 13:04:41 +0200 Subject: [PATCH] Ensure that C++ and C compilers get the same preprocessor setup CPPFLAGS is applied for both languages while CFLAGS only for C Signed-off-by: Andreas Pokorny --- components/coap/Makefile.projbuild | 2 +- components/mbedtls/Makefile.projbuild | 2 +- components/nghttp/Makefile.projbuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/coap/Makefile.projbuild b/components/coap/Makefile.projbuild index e976ee32f..e900b0f9a 100644 --- a/components/coap/Makefile.projbuild +++ b/components/coap/Makefile.projbuild @@ -1 +1 @@ -CFLAGS += -DWITH_POSIX +CPPFLAGS += -DWITH_POSIX diff --git a/components/mbedtls/Makefile.projbuild b/components/mbedtls/Makefile.projbuild index 51300efd1..ec9d6f2ce 100644 --- a/components/mbedtls/Makefile.projbuild +++ b/components/mbedtls/Makefile.projbuild @@ -1,4 +1,4 @@ # Anyone compiling mbedTLS code needs the name of the # alternative config file -CFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' +CPPFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' diff --git a/components/nghttp/Makefile.projbuild b/components/nghttp/Makefile.projbuild index 5c6ce7fc9..d17beccad 100644 --- a/components/nghttp/Makefile.projbuild +++ b/components/nghttp/Makefile.projbuild @@ -1 +1 @@ -CFLAGS += -DHAVE_CONFIG_H +CPPFLAGS += -DHAVE_CONFIG_H