From a6e3fdfd2424c1f99b4ed3786895c2255a5be023 Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Fri, 14 Apr 2023 10:22:35 +0800 Subject: Makefile: Respect standard CPPFLAGS The Makefile should respect the standard compilation setting CPPFLAGS. For example, the cros-debug-add-NDEBUG function call in the ebuild needs that to work. BUG=none TEST=USE=cros-debug emerge-corsola vboot_reference TEST=USE=-cros-debug emerge-corsola vboot_reference BRANCH=none Change-Id: I9b3a404983b5db81fe401ef243de357c55f478b3 Signed-off-by: Yu-Ping Wu Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4426377 Commit-Queue: Julius Werner Reviewed-by: Julius Werner --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dbee27f7..846e05a6 100644 --- a/Makefile +++ b/Makefile @@ -131,7 +131,7 @@ COMMON_FLAGS := -pipe ${WERROR} -Wall -Wstrict-prototypes -Wtype-limits \ -Wundef -Wmissing-prototypes -Wno-trigraphs -Wredundant-decls -Wshadow \ -Wwrite-strings -Wstrict-aliasing -Wdate-time \ -ffunction-sections -fdata-sections \ - -Wformat -Wno-format-security ${DEBUG_FLAGS} + -Wformat -Wno-format-security ${DEBUG_FLAGS} ${CPPFLAGS} # FIRMWARE_ARCH is defined if compiling for a firmware target # (coreboot or depthcharge). -- cgit v1.2.1