|
@@ -104,6 +104,7 @@ $(info done)
|
|
|
FEATURE_TESTS = \
|
|
|
hello \
|
|
|
stackprotector-all \
|
|
|
+ stackprotector \
|
|
|
libnuma
|
|
|
|
|
|
$(foreach test,$(FEATURE_TESTS),$(call feature_check,$(test),$(test)))
|
|
@@ -112,7 +113,7 @@ ifeq ($(feature-stackprotector-all), 1)
|
|
|
CFLAGS += -fstack-protector-all
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -Wstack-protector,-Wstack-protector),y)
|
|
|
+ifeq ($(feature-stackprotector), 1)
|
|
|
CFLAGS += -Wstack-protector
|
|
|
endif
|
|
|
|