From 040430fc2ed1d135a2c65f1768d48eb7e4df625a Mon Sep 17 00:00:00 2001 From: gordon Date: Sun, 29 Jun 2003 18:16:26 +0000 Subject: 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 --- share/mk/bsd.lib.mk | 2 ++ share/mk/bsd.prog.mk | 1 + 2 files changed, 3 insertions(+) (limited to 'share') 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 -- cgit v1.1