From fd9ffafc0eaad3b4ff576f4d291d2e9336e6019b Mon Sep 17 00:00:00 2001 From: Sachin Monga Date: Fri, 1 Aug 2025 04:35:11 -0500 Subject: [PATCH] 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 --- Makeconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3