Module Name:    src
Committed By:   christos
Date:           Tue Dec 22 16:46:56 UTC 2015

Modified Files:
        src/share/mk: bsd.sys.mk

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.245 -r1.246 src/share/mk/bsd.sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.245 src/share/mk/bsd.sys.mk:1.246
--- src/share/mk/bsd.sys.mk:1.245	Wed Sep  3 15:22:53 2014
+++ src/share/mk/bsd.sys.mk	Tue Dec 22 11:46:56 2015
@@ -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 @@ error2:
 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.

Reply via email to