Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 1995 09:34:00 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        kargl@troutmask.apl.washington.edu (Steven G Kargl)
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: make.conf and bsd.ports.mk
Message-ID:  <199505051634.JAA09216@gndrsh.aac.dev.com>
In-Reply-To: <199505051604.JAA27016@troutmask.apl.washington.edu> from "Steven G Kargl" at May 5, 95 09:04:14 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> According to Rodney W. Grimes:
> > 
> > > 
> > > Satoshi, Jordan, whomever,
> > > 
> > > Is there an obvious reason (that I am missing) why bsd.port.mk does
> > > not scan make.conf for CFLAGS?  The only place I can find that uses
> > > make.conf is sys.mk, but this isn't used for ports.
> > 
> > If you type ``make'' sys.mk is read, you have to do a ``make -r'' to
> > stop make from reading /usr/share/mk/sys.mk.
> > 
> > The problem you are most likely seeing is that most Makefile's in
> > the ports have there own .c.o rules that overrides the one in sys.mk :-(.
> > 
> 
> I knew the answer was probably simply, but I'm not too familiar with how
> the *.mk files interact.
> 
> I played around with the port of top-3.3, and found that if I changed the
> Makefile in top/work from
> 
> CDEF = -O
> CFLAGS = -DHAVE_GETOPT $(CDEF)
> 
> to
> 
> #CDEF = -O
> CFLAGS += -DHAVE_GETOPT $(CDEF)
> 
> The build does the Right Thing.  Should this type of change be added to
> the GUIDELINES for porting to FreeBSD?  I admit I like the convenience
> of the ports, but I don't want to edit the Makefile(s) in every port to
> include CFLAGS = -O2 -m486 -pipe (e.g., consider the fun of editing the
> Makefiles in XFree86).

It would involve a lot of patching, but would be a nice feature.  Satoshi
is the one who will have to decide what to do here.

> Rod, do you have a separate business related email address?

Nope, it all goes into one big basket :-)  FreeBSD is my life now :-)


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                   Custom computers for FreeBSD



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