]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blobdiff - package/Makefile.in
toolchain: granular choice for stack protector
[coffee/buildroot.git] / package / Makefile.in
index 82a66c2b9399b869b79ba2e2765b7eea4d000aa6..c5652af0f7e786d932a3c4094a5ee3ebb7ddb7a7 100644 (file)
@@ -159,7 +159,13 @@ TARGET_CFLAGS += -msep-data
 TARGET_CXXFLAGS += -msep-data
 endif
 
-ifeq ($(BR2_ENABLE_SSP),y)
+ifeq ($(BR2_SSP_REGULAR),y)
+TARGET_CFLAGS += -fstack-protector
+TARGET_CXXFLAGS += -fstack-protector
+else ifeq ($(BR2_SSP_STRONG),y)
+TARGET_CFLAGS += -fstack-protector-strong
+TARGET_CXXFLAGS += -fstack-protector-strong
+else ifeq ($(BR2_SSP_ALL),y)
 TARGET_CFLAGS += -fstack-protector-all
 TARGET_CXXFLAGS += -fstack-protector-all
 endif