[patch] Propagate -fdebug-prefix-map to ASFLAGS

Paul Pluzhnikov ppluzhnikov@google.com
Tue Mar 30 16:53:00 GMT 2010


Greetings,

When building glibc with '-g -fdebug-prefix-map=...' in CFLAGS on Linux,
GCC remaps compilation directory for *.c sources, but not for *.S sources.

Attached patchlet fixes that.

Thanks,
--
Paul Pluzhnikov


2010-03-30  Paul Pluzhnikov  <ppluzhnikov@google.com>

	* Makeconfig: Propagate -fdebug-prefix-map from CFLAGS to ASFLAGS.


diff --git a/Makeconfig b/Makeconfig
index 15cd4ca..5e7d4fd 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -780,7 +780,7 @@ endif
 # The assembler can generate debug information too.
 ifndef ASFLAGS
 ifeq ($(have-cpp-asm-debuginfo),yes)
-ASFLAGS := $(filter -g%,$(CFLAGS))
+ASFLAGS := $(filter -g%,$(CFLAGS)) $(filter -fdebug-prefix-map%,$(CFLAGS))
 else
 ASFLAGS :=
 endif



More information about the Libc-alpha mailing list