Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Create NETBSDOBJDIR to handle MAKEOBJDIRPREFIX, sin...
details: https://anonhg.NetBSD.org/src/rev/2f1e5dd69f0c
branches: trunk
changeset: 319835:2f1e5dd69f0c
user: christos <christos%NetBSD.org@localhost>
date: Wed Jun 13 15:46:26 2018 +0000
description:
Create NETBSDOBJDIR to handle MAKEOBJDIRPREFIX, since that prepends the
prefix to the whole path.
Mention that we cannot handle MAKEOBJDIR
diffstat:
share/mk/bsd.sys.mk | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r a335a4a21360 -r 2f1e5dd69f0c share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Wed Jun 13 15:14:40 2018 +0000
+++ b/share/mk/bsd.sys.mk Wed Jun 13 15:46:26 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.280 2018/06/11 01:34:03 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.281 2018/06/13 15:46:26 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -26,17 +26,19 @@
CPPFLAGS+= -Wp,-fno-canonical-system-headers
CPPFLAGS+= -Wp,-iremap,${NETBSDSRCDIR}:/usr/src
CPPFLAGS+= -Wp,-iremap,${X11SRCDIR}:/usr/xsrc
+
REPROFLAGS+= -fdebug-prefix-map=\$$NETBSDSRCDIR=/usr/src
REPROFLAGS+= -fdebug-prefix-map=\$$X11SRCDIR=/usr/xsrc
.if defined(MAKEOBJDIRPREFIX)
-REPROFLAGS+= -fdebug-prefix-map=\$$MAKEOBJDIRPREFIX=/usr/obj
+NETBSDOBJDIR= ${MAKEOBJDIRPREFIX}${NETBSDSRCDIR}
+.export NETBSDOBJDIR
+REPROFLAGS+= -fdebug-prefix-map=\$$NETBSDOBJDIR=/usr/obj
.endif
-.if defined(MAKEOBJDIR)
-REPROFLAGS+= -fdebug-prefix-map=\$$MAKEOBJDIR=/usr/obj
-.endif
+
LINTFLAGS+= -R${NETBSDSRCDIR}=/usr/src -R${X11SRCDIR}=/usr/xsrc
LINTFLAGS+= -R${DESTDIR}=
+# XXX: Cannot handle MAKEOBJDIR, yet.
REPROFLAGS+= -fdebug-regex-map='/usr/src/(.*)/obj$$=/usr/obj/\1'
REPROFLAGS+= -fdebug-regex-map='/usr/src/(.*)/obj/(.*)=/usr/obj/\1/\2'
REPROFLAGS+= -fdebug-regex-map='/usr/src/(.*)/obj\..*=/usr/obj/\1'
Home |
Main Index |
Thread Index |
Old Index