Makeconfig (ASFLAGS): Always append required assembler flags

Message ID 20180704142954.4F54743994575@oldenburg.str.redhat.com
State New
Headers show
Series
  • Makeconfig (ASFLAGS): Always append required assembler flags
Related show

Commit Message

Florian Weimer July 4, 2018, 2:29 p.m.
Otherwise, it is impossible to set ASFLAGS differently from CFLAGS
without also overriding essential flags such as -Wa,--noexecstack.

2018-07-04  Florian Weimer  <fweimer@redhat.com>

	* Makeconfig (ASFLAGS): Always append required assembler flags.

Patch

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)