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.
This commit is contained in:
Florian Weimer 2018-08-17 11:35:42 +02:00
parent f6f275d2d9
commit 93a2584cd2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2018-08-16 Florian Weimer <fweimer@redhat.com>
* Makeconfig (ASFLAGS): Always append required assembler flags.
2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
* malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.

View File

@ -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)