[PATCH v2] Filter machine compiler flags into Assembler Flags
Florian Weimer
fweimer@redhat.com
Mon Aug 4 13:12:25 GMT 2025
* Sachin Monga:
> 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)
Looks okay, but is this patch covered by the IBM copyright assignment?
If so, please drop the Signed-off-by: line.
Thanks,
Florian
More information about the Libc-alpha
mailing list