Date: Thu, 16 Sep 2004 03:45:00 -0000 From: Pyun YongHyeon <yongari@kt-is.co.kr> To: pf4freebsd@freelists.org Subject: [pf4freebsd] Re: make.conf vs. ports Makefile (was Re: pftop) Message-ID: <20030807084439.GA3633@kt-is.co.kr> In-Reply-To: <002b01c35c7c$96c30850$01000001@max900> References: <003501c35b54$c5187240$01000001@max900> <3F301BE0.1040103@BSDsystems.de> <1060129200.3f3049b09d4fa@mail.fluidhosting.com> <1060205566.3f3173fe72132@mail.fluidhosting.com> <00ba01c35c65$04036710$01000001@max900> <1060212294.3f318e46db813@mail.fluidhosting.com> <000901c35c74$eb8639f0$01000001@max900> <1060215989.3f319cb5b5ac8@mail.fluidhosting.com> <002b01c35c7c$96c30850$01000001@max900>
next in thread | previous in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030807084439.GA3633>
