From owner-freebsd-ports Fri May 5 09:06:27 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA01552 for ports-outgoing; Fri, 5 May 1995 09:06:27 -0700 Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.97.216]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA01545 for ; Fri, 5 May 1995 09:06:25 -0700 Received: (from kargl@localhost) by troutmask.apl.washington.edu (8.6.11/8.6.9) id JAA27016; Fri, 5 May 1995 09:04:14 -0700 From: Steven G Kargl Message-Id: <199505051604.JAA27016@troutmask.apl.washington.edu> Subject: Re: make.conf and bsd.ports.mk To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Date: Fri, 5 May 1995 09:04:14 -0700 (PDT) Cc: freebsd-ports@FreeBSD.org In-Reply-To: <199505050220.TAA08380@gndrsh.aac.dev.com> from "Rodney W. Grimes" at May 4, 95 07:20:34 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1434 Sender: ports-owner@FreeBSD.org Precedence: bulk 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). Rod, do you have a separate business related email address? -- Steven G. Kargl | Phone: 206-685-4677 | Applied Physics Lab | Fax: 206-543-6785 | Univ. of Washington |---------------------| 1013 NE 40th St | FreeBSD 2.1-current | Seattle, WA 98105 |---------------------|