This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]