From: Sachin Monga Date: Fri, 1 Aug 2025 09:35:11 +0000 (-0500) Subject: Filter machine compiler flags into Assembler Flags X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd9ffafc0eaad3b4ff576f4d291d2e9336e6019b;p=thirdparty%2Fglibc.git Filter machine compiler flags into Assembler Flags Assembler files may want or need to test for predefined macros which are set via -m* compiler options, so ensure all -m* options in CFLAGS are passed to ASFLAGS. Reviewed-by: Florian Weimer --- diff --git a/Makeconfig b/Makeconfig index 7102d922b2..9eda4fa528 100644 --- a/Makeconfig +++ b/Makeconfig @@ -1182,7 +1182,7 @@ endif # The assembler can generate debug information too. ifndef ASFLAGS -ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS)) +ASFLAGS := $(filter -g% -fdebug-prefix-map=% -m%,$(CFLAGS)) endif override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu) $(as-sframe)