summaryrefslogtreecommitdiff
path: root/mk/vars.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/vars.mk')
-rw-r--r--mk/vars.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 30bf39247..12b26084d 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -113,13 +113,13 @@ TARGET_CXXFLAGS+= -static
TARGET_LDFLAGS+= -static
endif
-ifneq ($(ADK_TOOLCHAIN_USE_SSP),)
-TARGET_CFLAGS+= -fstack-protector
-TARGET_CXXFLAGS+= -fstack-protector
-TARGET_LDFLAGS+= -fstack-protector
+ifneq ($(ADK_TARGET_USE_SSP),)
+TARGET_CFLAGS+= -fstack-protector-all
+TARGET_CXXFLAGS+= -fstack-protector-all
+TARGET_LDFLAGS+= -fstack-protector-all
endif
-ifneq ($(ADK_TOOLCHAIN_USE_LTO),)
+ifneq ($(ADK_TARGET_USE_LTO),)
TARGET_CFLAGS+= -flto
TARGET_CXXFLAGS+= -flto
TARGET_LDFLAGS+= -flto