Module Name: src
Committed By: tnn
Date: Mon Feb 11 17:49:37 UTC 2019
Modified Files:
src/external/cddl/osnet/lib/libdtrace: Makefile
Log Message:
-Wno-format-truncation is only needed when using GCC
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/cddl/osnet/lib/libdtrace/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/lib/libdtrace/Makefile
diff -u src/external/cddl/osnet/lib/libdtrace/Makefile:1.20 src/external/cddl/osnet/lib/libdtrace/Makefile:1.21
--- src/external/cddl/osnet/lib/libdtrace/Makefile:1.20 Wed Feb 6 04:23:16 2019
+++ src/external/cddl/osnet/lib/libdtrace/Makefile Mon Feb 11 17:49:37 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2019/02/06 04:23:16 christos Exp $
+# $NetBSD: Makefile,v 1.21 2019/02/11 17:49:37 tnn Exp $
# $FreeBSD: head/cddl/lib/libdtrace/Makefile 314654 2017-03-04 11:30:04Z ngie $
@@ -105,7 +105,7 @@ CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/
CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/arm
.PATH: ${.CURDIR}/../../dist/lib/libdtrace/arm
.endif
-COPTS.dt_link.c += -Wno-format-truncation
+COPTS.dt_link.c += ${${ACTIVE_CC} == "gcc" :? -Wno-format-truncation :}
LFLAGS+=-l