about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-08-17 11:35:42 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-08-17 11:35:42 +0200
commit93a2584cd2ffb2a6e4b17682ba250889059f5d8b (patch)
treef8c1c4c07e55613f1c75d1f023c402336b37391e
parentf6f275d2d92003fdd53c4fd26c32466f64052b95 (diff)
downloadglibc-93a2584cd2ffb2a6e4b17682ba250889059f5d8b.tar.gz
glibc-93a2584cd2ffb2a6e4b17682ba250889059f5d8b.tar.xz
glibc-93a2584cd2ffb2a6e4b17682ba250889059f5d8b.zip
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.
-rw-r--r--ChangeLog4
-rw-r--r--Makeconfig2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8af30250f6..45520095d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
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)