mk/prog: Support CRUNCH_CFLAGS for crunchgen's buildopts
authorAaron LI <aly@aaronly.me>
Sat, 9 Jun 2018 11:22:14 +0000 (19:22 +0800)
committerAaron LI <aly@aaronly.me>
Sun, 1 Jul 2018 09:21:59 +0000 (17:21 +0800)
Taken-from: FreeBSD

share/mk/bsd.prog.mk

index 3be631c..ef35555 100644 (file)
@@ -7,6 +7,10 @@
 
 CFLAGS+=${COPTS} ${DEBUG_FLAGS}
 
+.if defined(CRUNCH_CFLAGS)
+CFLAGS+=${CRUNCH_CFLAGS}
+.endif
+
 PRIVATELIB_BLDFLAGS?=  -rpath /lib/priv -L /usr/lib/priv
 PRIVATELIB_LDFLAGS?=   -rpath /lib/priv -L ${_SHLIBDIRPREFIX}/usr/lib/priv