aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware/Rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tools/firmware/Rules.mk')
-rw-r--r--tools/firmware/Rules.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware/Rules.mk b/tools/firmware/Rules.mk
index e3dbc0d206..901bbf2434 100644
--- a/tools/firmware/Rules.mk
+++ b/tools/firmware/Rules.mk
@@ -13,9 +13,9 @@ endif
CFLAGS += -Werror
# Disable PIE/SSP if GCC supports them. They can break us.
-CFLAGS += $(call cc-option,$(CC),-nopie,)
-CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
-CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
+$(call cc-option-add,CFLAGS,CC,-nopie)
+$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
+$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
# Extra CFLAGS suitable for an embedded type of environment.
CFLAGS += -fno-builtin -msoft-float