[PATCH v3 15/30] tools: hv: Append extra cflags
From: Leo Yan
Date: Sun Mar 08 2026 - 12:52:47 EST
Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to
the compiler.
Signed-off-by: Leo Yan <leo.yan@xxxxxxx>
---
tools/hv/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/hv/Makefile b/tools/hv/Makefile
index 34ffcec264ab0fdf7075d25456ef012cb866796b..e39c16325b451ee7c2ddc581cc4d168915472ed6 100644
--- a/tools/hv/Makefile
+++ b/tools/hv/Makefile
@@ -16,6 +16,7 @@ endif
# (this improves performance and avoids hard-to-debug behaviour);
MAKEFLAGS += -r
+override CFLAGS += $(EXTRA_CFLAGS)
override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include
override CFLAGS += -Wno-address-of-packed-member
--
2.34.1