[pf4freebsd] Re: make.conf vs. ports Makefile (was Re: pftop)
Pyun YongHyeon
yongari at kt-is.co.kr
Wed Sep 15 20:45:00 PDT 2004
On Thu, Aug 07, 2003 at 02:41:06AM +0200, Max Laier wrote:
> Interesting. Does anybody know how to work around this (wrong/brainfucked)
> behaviour? Is there any way to pass CFLAGS from a ports Makefile over to the
> gcc building the application? Or does make.conf always interfere?
>
I'm afraid /etc/make.conf clobbers our CFLAGS. You have cc forced
to ignore CFLAGS with CFLAGS in /etc/make.conf.
We may fix this problem if we touch bsd.port.mk file. However,
I think, the more easy way is to add an extra args in Makefile of
pftop.
For example,
--- work/pftop-0.3/Makefile.orig Thu Aug 7 17:39:22 2003
+++ work/pftop-0.3/Makefile Thu Aug 7 17:31:06 2003
@@ -10,6 +10,7 @@
MAN= pftop.8
CFLAGS+= -Wall -DOS_LEVEL=${OSLEVEL}
+CFLAGS+= -I${.CURDIR}/../../../../include
LDADD+= -lcurses
MANDIR=/usr/local/man/cat
This should work on any CFLAGS setup in /etc/make.conf.
> Thanks
> Max
>
> > The Makefile was the same, so I commented out the following that is in my
> > /etc/make.conf:
> >
> > #CFLAGS= -O -pipe
> >
> > Then it built without issue.
> >
> > Thanks,
> >
> > -S
>
>
Thanks.
Regards,
--
Pyun YongHyeon <http://www.kr.freebsd.org/~yongari>
More information about the freebsd-pf
mailing list