[CRIU] [PATCH 3/6] Makefile: Introduce per-file CFLAGS removal.
Andrey Ryabinin
aryabinin at virtuozzo.com
Mon Feb 6 02:14:14 PST 2017
This adds the reverse of CFLAGS_obj.o with CFLAGS_REMOVE_obj.o.
This allows to prevent certain CFLAGS from being used to
compile files.
Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
Cc: Dmitry Safonov <dsafonov at virtuozzo.com>
---
scripts/nmk/scripts/build.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/nmk/scripts/build.mk b/scripts/nmk/scripts/build.mk
index e5706af..46d15fa 100644
--- a/scripts/nmk/scripts/build.mk
+++ b/scripts/nmk/scripts/build.mk
@@ -43,7 +43,7 @@ LDFLAGS := $(filter-out $(LDFLAGS-MASK),$(LDFLAGS))
#
# Accumulate common flags.
define nmk-ccflags
- $(CFLAGS) $(ccflags-y) $(CFLAGS_$(@F))
+ $(filter-out $(CFLAGS_REMOVE_$(@F)), $(CFLAGS) $(ccflags-y) $(CFLAGS_$(@F)))
endef
define nmk-asflags
--
2.10.2
More information about the CRIU
mailing list