Commit abec5dab authored by Andrey Ryabinin's avatar Andrey Ryabinin Committed by Andrei Vagin

Makefile: Introduce per-file CFLAGS removal.

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.

travis-ci: success for series starting with [1/6] compel/infect: fix out-of-bounds parasite memcpy()
Signed-off-by: 's avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Dmitry Safonov <dsafonov@virtuozzo.com>
Reviewed-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 31146346
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment