Module Name: src Committed By: christos Date: Sat Jan 9 02:06:22 UTC 2016
Modified Files: src/share/mk: bsd.sys.mk Log Message: - use -fdebug-regex-map to remap one style of object dirs. There are others. - change DESTDIR to nothing so that we don't get // in the front - apply the mappings to both c and c++ To generate a diff of this commit: cvs rdiff -u -r1.246 -r1.247 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.246 src/share/mk/bsd.sys.mk:1.247 --- src/share/mk/bsd.sys.mk:1.246 Tue Dec 22 11:46:56 2015 +++ src/share/mk/bsd.sys.mk Fri Jan 8 21:06:22 2016 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.sys.mk,v 1.246 2015/12/22 16:46:56 christos Exp $ +# $NetBSD: bsd.sys.mk,v 1.247 2016/01/09 02:06:22 christos Exp $ # # Build definitions used for NetBSD source tree builds. @@ -19,9 +19,14 @@ CPPFLAGS+= -Wp,-iremap,${NETBSDSRCDIR}:/ 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 +REPROFLAGS+= -fdebug-prefix-map=\$$NETBSDSRCDIR=/usr/src +.if !empty(DESTDIR) +REPROFLAGS+= -fdebug-prefix-map=\$$DESTDIR= +.endif +REPROFLAGS+= -fdebug-prefix-map=\$$X11SRCDIR=/usr/xsrc +REPROFLAGS+= -fdebug-regex-map='/usr/src/(.*)/obj.${MACHINE}=/usr/obj/\1' +CFLAGS+= ${REPROFLAGS} +CXXFLAGS+= ${REPROFLAGS} .endif # NetBSD sources use C99 style, with some GCC extensions.