[PATCH v2] Filter machine compiler flags into Assembler Flags
Sachin Monga
smonga@linux.ibm.com
Fri Aug 1 17:49:31 GMT 2025
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.
Signed-off-by: Sachin Monga <smonga@linux.ibm.com>
---
This patch is reg tested.
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.1
More information about the Libc-alpha
mailing list