]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Filter machine compiler flags into Assembler Flags
authorSachin Monga <smonga@linux.ibm.com>
Fri, 1 Aug 2025 09:35:11 +0000 (04:35 -0500)
committerSachin Monga <smonga@linux.ibm.com>
Thu, 7 Aug 2025 07:02:17 +0000 (02:02 -0500)
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>
Makeconfig

index 7102d922b23c0c39254a149ffd3068bbfc319434..9eda4fa528a71ef594470c895a24a9a871e01b30 100644 (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)