How to set CFLAGS for the build step?
RW
fbsd06 at mlists.homeunix.com
Wed Apr 2 17:48:38 UTC 2008
On Wed, 2 Apr 2008 18:34:42 +0200
Max Laier <max at love2party.net> wrote:
> Hi,
>
> I have some trouble with sysutils/pftop. It seems that if a user
> sets CFLAGS in make.conf the additional "CFLAGS+= -DHAVE_ALTQ=1" I
> have in the port's Makefile doesn't get through to the build step's
> environment. This might be due to the fact that this port uses the
> bsd.*.mk scripts, but I'm puzzled as to how to do this right. Any
> insight?
>
It's handled in the pftop Makefile:
.if ${OSVERSION} < 502116
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=34
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
CFLAGS+= -DHAVE_ALTQ=1
.endif
.elif ${OSVERSION} < 600025
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=35
CFLAGS+= -DHAVE_ALTQ=1 -DHAVE_RULE_ANCHOR=1
.elif ${OSVERSION} < 700049
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=37
CFLAGS+= -DHAVE_ALTQ=1
.else
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=41
CFLAGS+= -DHAVE_ALTQ=1
.endif
More information about the freebsd-ports
mailing list