Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 2008 18:16:54 +0100
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: How to set CFLAGS for the build step?
Message-ID:  <20080402181654.3c1ab978@gumby.homeunix.com.>
In-Reply-To: <200804021834.43014.max@love2party.net>
References:  <200804021834.43014.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2 Apr 2008 18:34:42 +0200
Max Laier <max@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080402181654.3c1ab978>