hello \
stackprotector-all \
stackprotector \
+ volatile-register-var \
libnuma
$(foreach test,$(FEATURE_TESTS),$(call feature_check,$(test),$(test)))
CFLAGS += -Wstack-protector
endif
-ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -Wvolatile-register-var,-Wvolatile-register-var),y)
+ifeq ($(feature-volatile-register-var), 1)
CFLAGS += -Wvolatile-register-var
endif
test-hello \
test-stackprotector-all \
test-stackprotector \
+ test-volatile-register-var \
test-libnuma
CC := $(CC) -MD
test-stackprotector:
$(BUILD) -Werror -fstack-protector
+test-volatile-register-var:
+ $(BUILD) -Werror -Wvolatile-register-var
+
test-libnuma:
$(BUILD) -lnuma