From 93a2584cd2ffb2a6e4b17682ba250889059f5d8b Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 17 Aug 2018 11:35:42 +0200 Subject: [PATCH] Makeconfig (ASFLAGS): Always append required assembler flags Otherwise, it is impossible to set ASFLAGS differently from CFLAGS without also overriding essential flags such as -Wa,--noexecstack. --- ChangeLog | 4 ++++ Makeconfig | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8af30250f6..45520095d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-08-16 Florian Weimer + + * Makeconfig (ASFLAGS): Always append required assembler flags. + 2018-08-16 Moritz Eckert * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size. diff --git a/Makeconfig b/Makeconfig index 608ffe648c..099f184088 100644 --- a/Makeconfig +++ b/Makeconfig @@ -1047,7 +1047,7 @@ endif ifndef ASFLAGS ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS)) endif -ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu) +override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu) ifndef BUILD_CC BUILD_CC = $(CC) -- 2.43.5