Patchwork Makeconfig (ASFLAGS): Always append required assembler flags

login
register
mail settings
Submitter Florian Weimer
Date July 4, 2018, 2:29 p.m.
Message ID <20180704142954.4F54743994575@oldenburg.str.redhat.com>
Download mbox | patch
Permalink /patch/28225/
State New
Headers show

Comments

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)