summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2003-06-29 18:16:26 +0000
committergordon <gordon@FreeBSD.org>2003-06-29 18:16:26 +0000
commit040430fc2ed1d135a2c65f1768d48eb7e4df625a (patch)
tree094e9eb5f2301a5f163645cbc6e7ae318d13855e /share/mk
parent5d5a81b891bbce7b389083b2e91ebdfa4f0b4b7e (diff)
downloadFreeBSD-src-040430fc2ed1d135a2c65f1768d48eb7e4df625a.zip
FreeBSD-src-040430fc2ed1d135a2c65f1768d48eb7e4df625a.tar.gz
Add ${CRUNCH_CFLAGS} support for adding compile options to crunch
components. This is generally considered a non-optimal solution but it gets the job done for the /rescue case. Submitted by: Tim Kientzle <kientzle@acm.org>
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.lib.mk2
-rw-r--r--share/mk/bsd.prog.mk1
2 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index c9d80d2..83bdd46 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -21,6 +21,8 @@ SHLIB_LINK?= ${SHLIB_NAME:R}
SONAME?= ${SHLIB_NAME}
.endif
+CFLAGS+= ${CRUNCH_CFLAGS}
+
.if defined(DEBUG_FLAGS)
CFLAGS+= ${DEBUG_FLAGS}
.endif
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index d012bb3..43bb9e8 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -6,6 +6,7 @@
.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm
CFLAGS+=${COPTS} ${DEBUG_FLAGS}
+CFLAGS+=${CRUNCH_CFLAGS}
.if !defined(DEBUG_FLAGS)
STRIP?= -s
OpenPOWER on IntegriCloud