This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[patch] Propagate -fdebug-prefix-map to ASFLAGS
- From: ppluzhnikov at google dot com (Paul Pluzhnikov)
- To: libc-alpha at sourceware dot org
- Cc: ppluzhnikov at google dot com
- Date: Tue, 30 Mar 2010 09:47:11 -0700 (PDT)
- Subject: [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