[PATCH] Propagate -ffile-prefix-map from CFLAGS to ASFLAGS.

Florian Weimer fweimer@redhat.com
Wed Apr 23 06:25:45 GMT 2025


* Khem Raj:

> On Wed, Apr 16, 2025 at 10:48 PM Florian Weimer <fweimer@redhat.com> wrote:
>>
>> * Khem Raj:
>>
>> > -ffile-prefix-map also implies -fdebug-prefix-map
>> > and some systems may use --ffile-prefix-map for building
>> > reprodubile systems
>> > ---
>> >  Makeconfig | 2 +-
>> >  1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/Makeconfig b/Makeconfig
>> > index e35c5cfe4e..7a19c731c6 100644
>> > --- a/Makeconfig
>> > +++ b/Makeconfig
>> > @@ -1176,7 +1176,7 @@ endif
>> >
>> >  # The assembler can generate debug information too.
>> >  ifndef ASFLAGS
>> > -ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS))
>> > +ASFLAGS := $(filter -g% -fdebug-prefix-map=% -ffile-prefix-map=%,$(CFLAGS))
>> >  endif
>> >  override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu)
>> >
>>
>> Looks okay.
>>
>> Reviewed-by: Florian Weimer <fweimer@redhat.com>
>>
>> Do you have a copyright assignment with the FSF?
>
> I don't have, but this one is a trivial patch perhaps.

Would you please review the terms at

<https://sourceware.org/glibc/wiki/Contribution%20checklist#Developer_Certificate_of_Origin>

?  If you and your employer (if applicable) are fine with them, please
resubmit your patch with a Signed-off-by: line, and use that for future
patches.  Alternatively, you or your employer could (usually
electronically) sign an FSF copyright assignment.

There are only so many small fixes we can accept before they make a
significant contribution. 8-)

Thanks,
Florian



More information about the Libc-alpha mailing list