Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk explain how to allow coverity to use sysroot
details: https://anonhg.NetBSD.org/src/rev/2d47ee7b164b
branches: trunk
changeset: 829378:2d47ee7b164b
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 27 23:59:17 2018 +0000
description:
explain how to allow coverity to use sysroot
diffstat:
share/mk/bsd.own.mk | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 0a5067c8d825 -r 2d47ee7b164b share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk Sat Jan 27 23:07:36 2018 +0000
+++ b/share/mk/bsd.own.mk Sat Jan 27 23:59:17 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.1028 2018/01/24 09:04:42 skrll Exp $
+# $NetBSD: bsd.own.mk,v 1.1029 2018/01/27 23:59:17 christos Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -312,15 +312,17 @@
#
DESTDIR?=
-# Coverity does not like --sysroot
+# Don't append another copy of sysroot (coming from COMPATCPPFLAGS etc.
+# because it confuses Coverity. Still we need to cov-configure specially
+# for each specific sysroot argument.
.if !defined(HOSTPROG) && !defined(HOSTLIB)
. if ${DESTDIR} != ""
-. if !defined(COVERITY_TOP_CONFIG)
+. if empty(CPPFLAGS:M*--sysroot=*)
CPPFLAGS+= --sysroot=${DESTDIR}
. endif
LDFLAGS+= --sysroot=${DESTDIR}
. else
-. if !defined(COVERITY_TOP_CONFIG)
+. if empty(CPPFLAGS:M*--sysroot=*)
CPPFLAGS+= --sysroot=/
. endif
LDFLAGS+= --sysroot=/
Home |
Main Index |
Thread Index |
Old Index