Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/share/mk Pull up following revision(s) (requested by kami...
details: https://anonhg.NetBSD.org/src/rev/271b3538b6df
branches: netbsd-9
changeset: 462358:271b3538b6df
user: martin <martin%NetBSD.org@localhost>
date: Fri Aug 16 19:22:08 2019 +0000
description:
Pull up following revision(s) (requested by kamil in ticket #68):
share/mk/bsd.prog.mk: revision 1.321
Add SANITIZER_RENAME_CLASSES in bsd.prog.mk
This adds a more flexible version of SANITIZER_RENAME_SYMBOL.
New symbol allows to specify MKSANITIZER specific renames on per-file and
per-symbol basis.
diffstat:
share/mk/bsd.prog.mk | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 2b3bd342f799 -r 271b3538b6df share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Fri Aug 16 19:20:46 2019 +0000
+++ b/share/mk/bsd.prog.mk Fri Aug 16 19:22:08 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.319 2019/01/21 21:11:54 christos Exp $
+# $NetBSD: bsd.prog.mk,v 1.319.2.1 2019/08/16 19:22:08 martin Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@@ -20,6 +20,16 @@
. endfor
.endif
+.if ${MKSANITIZER:Uno} == "yes" && defined(SANITIZER_RENAME_CLASSES)
+. for _class in ${SANITIZER_RENAME_CLASSES}
+. for _file in ${SANITIZER_RENAME_FILES.${_class}}
+. for _symbol in ${SANITIZER_RENAME_SYMBOL.${_class}}
+COPTS.${_file}+= -D${_symbol}=__mksanitizer_${_symbol}
+. endfor
+. endfor
+. endfor
+.endif
+
#
# Definitions and targets shared among all programs built by a single
# Makefile.
Home |
Main Index |
Thread Index |
Old Index