Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Add a prefix translation map for debugging symbols....
details: https://anonhg.NetBSD.org/src/rev/ae8fe9267867
branches: trunk
changeset: 342450:ae8fe9267867
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 22 16:46:56 2015 +0000
description:
Add a prefix translation map for debugging symbols. Note the use of variable
indirection so that DW_at_producer that contains the compilation command
remains the same: readelf --debug-dump foo.debug
diffstat:
share/mk/bsd.sys.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r f61a4d6fea80 -r ae8fe9267867 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Tue Dec 22 15:12:39 2015 +0000
+++ b/share/mk/bsd.sys.mk Tue Dec 22 16:46:56 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.245 2014/09/03 19:22:53 matt Exp $
+# $NetBSD: bsd.sys.mk,v 1.246 2015/12/22 16:46:56 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -18,6 +18,10 @@
CPPFLAGS+= -Wp,-iremap,${NETBSDSRCDIR}:/usr/src
CPPFLAGS+= -Wp,-iremap,${DESTDIR}/:/
CPPFLAGS+= -Wp,-iremap,${X11SRCDIR}:/usr/xsrc
+.export NETBSDSRCDIR DESTDIR X11SRCDIR
+CFLAGS+= -fdebug-prefix-map=\$$NETBSDSRCDIR=/usr/src
+CFLAGS+= -fdebug-prefix-map=\$$DESTDIR=/
+CFLAGS+= -fdebug-prefix-map=\$$X11SRCDIR=/usr/xsrc
.endif
# NetBSD sources use C99 style, with some GCC extensions.
Home |
Main Index |
Thread Index |
Old Index