pktgen: Allow building w/o INVARIANTS
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 26 Sep 2017 00:49:01 +0000 (08:49 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 26 Sep 2017 00:49:01 +0000 (08:49 +0800)
tools/tools/netrate/pktgen/Makefile

index b5430cb..f7cbbbe 100644 (file)
@@ -2,6 +2,8 @@ KMOD=   pktgen
 SRCS=  pktgen.c
 
 KCFLAGS+= -g
+.if !defined(NOINVAR)
 KCFLAGS+= -DINVARIANTS
+.endif
 
 .include <bsd.kmod.mk>