-Wno-format-truncation is only needed when using GCC

This commit is contained in:
tnn 2019-02-11 17:49:37 +00:00
parent 98728f360d
commit 7d56d81472

View File

@ -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}/uts/sparc
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