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 <fweimer@redhat.com>
This commit is contained in:
Sachin Monga 2025-08-01 04:35:11 -05:00
parent 9d054eca1a
commit fd9ffafc0e
1 changed files with 1 additions and 1 deletions

View File

@ -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)