Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Sanitizers don't support static linking.
details: https://anonhg.NetBSD.org/src/rev/7a86929ebe33
branches: trunk
changeset: 319535:7a86929ebe33
user: christos <christos%NetBSD.org@localhost>
date: Sat Jun 02 15:19:45 2018 +0000
description:
Sanitizers don't support static linking.
diffstat:
share/mk/bsd.prog.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 8006f2b1d7c7 -r 7a86929ebe33 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Sat Jun 02 15:09:37 2018 +0000
+++ b/share/mk/bsd.prog.mk Sat Jun 02 15:19:45 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.312 2018/03/11 09:56:44 mrg Exp $
+# $NetBSD: bsd.prog.mk,v 1.313 2018/06/02 15:19:45 christos Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@@ -462,7 +462,10 @@
_DPADD.${_P}= ${DPADD} ${DPADD.${_P}}
_LDADD.${_P}= ${LDADD} ${LDADD.${_P}}
_LDFLAGS.${_P}= ${LDFLAGS} ${LDFLAGS.${_P}}
+.if ${MKSANITIZER} != "yes"
+# Sanitizers don't support static build.
_LDSTATIC.${_P}= ${LDSTATIC} ${LDSTATIC.${_P}}
+.endif
##### Build and install rules
.if !empty(_APPEND_SRCS:M[Yy][Ee][Ss])
Home |
Main Index |
Thread Index |
Old Index