From owner-freebsd-current Mon Nov 9 15:25:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA06155 for freebsd-current-outgoing; Mon, 9 Nov 1998 15:25:46 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp2.erols.com (smtp2.erols.com [207.172.3.235]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA06142 for ; Mon, 9 Nov 1998 15:25:42 -0800 (PST) (envelope-from shmit@natasya.noc.erols.net) Received: from natasya.noc.erols.net (natasya.noc.erols.net [207.172.25.236]) by smtp2.erols.com (8.8.8/8.8.5) with ESMTP id SAA01240; Mon, 9 Nov 1998 18:26:59 -0500 (EST) Received: (from shmit@localhost) by natasya.noc.erols.net (8.9.1/8.9.1) id SAA09191; Mon, 9 Nov 1998 18:25:26 -0500 (EST) Message-ID: <19981109182526.E901@kublai.com> Date: Mon, 9 Nov 1998 18:25:26 -0500 From: Brian Cully To: "Arno J. Klaassen" , current@FreeBSD.ORG Subject: Re: /usr/bin/groff: can't find `DESC' file Reply-To: shmit@kublai.com References: <199811092213.OAA01266@dingo.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Arno J. Klaassen on Mon, Nov 09, 1998 at 11:25:18PM +0100 X-Sender: If your mailer pays attention to this, it's broken. X-PGP-Info: finger shmit@kublai.com for my public key. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Nov 09, 1998 at 11:25:18PM +0100, Arno J. Klaassen wrote: > I got this error when comcping with CFLAGS='-O3 -pipe'. > rebuilding world with CFLAGS='-O -pipe' made it disappear. Don't do that. -On is known to produce bad code. > introducing CXXFLAGS might be not a bad idea (if it does not > exist already in some form or another (I'm not yte completely > familiarised with th FreeBSD build environment)). CXXFLAGS exists. Unfortunately, it over-rides CFLAGS for C++ objects, so many points in your typical `make world' fail (groff is a fine example). The only way around it, that I can discern, is to introduce a standard INCS and OPTS variable that gets added by bsd.prog.mk and bsd.lib.mk to CFLAGS and CXXFLAGS. Of course, you'd still have to convert the old makefiles to take advantage of the new syntax. You'd also have to convince a bunch of decade-long BSD bigots that this is The Right Thing To Do (that includes me ;-)). Or, you could hack each of the problematic Makefiles in a way similar to the one described above. This'll probably get you a lot farther than trying to change the way things have been done for the last ten years. -- Brian Cully They Might Be Giant's Dial-a-Song service: (718) 387-6962. ``Free when you call from work!'' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message