From owner-freebsd-ports Sat Mar 30 13:50:38 2002 Delivered-To: freebsd-ports@freebsd.org Received: from squall.waterspout.com (squall.waterspout.com [208.13.56.12]) by hub.freebsd.org (Postfix) with ESMTP id 4C05B37B41B for ; Sat, 30 Mar 2002 13:50:32 -0800 (PST) Received: by squall.waterspout.com (Postfix, from userid 1050) id 17CD59B15; Sat, 30 Mar 2002 16:50:21 -0500 (EST) Date: Sat, 30 Mar 2002 16:50:21 -0500 From: Will Andrews To: Donn Miller Cc: Kris Kennaway , ports@freebsd.org Subject: Re: Optimizations and XFree86-4-libraries port Message-ID: <20020330215020.GC63817@squall.waterspout.com> Mail-Followup-To: Donn Miller , Kris Kennaway , ports@freebsd.org References: <3CA45DF1.3020201@cvzoom.net> <20020329093937.G45029@xor.obsecurity.org> <3CA5B156.8050201@cvzoom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CA5B156.8050201@cvzoom.net> User-Agent: Mutt/1.3.26i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Mar 30, 2002 at 07:36:38AM -0500, Donn Miller wrote: > The best way is to put the optimization flags inside our temporary > host.def file that gets used during the build. I tried something like > the following: > > $ diff -u scripts/configure.orig scripts/configure > > --- scripts/configure.orig Sat Mar 30 06:58:52 2002 > +++ scripts/configure Sat Mar 30 07:15:04 2002 > @@ -72,6 +72,8 @@ > echo "#define Freetype2Dir ${LOCALBASE}" >> $LOCALDEF > echo "#define FreeBSDBuildXlib YES" >> $LOCALDEF > echo "#define FreeBSDBuildXbin NO" >> $LOCALDEF > + echo "#define DefaultGcc2i386Opt ${CFLAGS}" >> $LOCALDEF > + echo "#define GccWarningOptions -Wall" >> $LOCALDEF > > HasXdmAuth=YES > > Strangely, ${CFLAGS} turns out to be NULL during the make configure, but > ${LOCALBASE} expands to /usr/local, as it should. So my method won't work: This is (probably) because SCRIPTS_ENV doesn't pass CFLAGS. I'm willing to consider a diff like this if it's portable. We build XFree86 on more than just i386. Regards, -- wca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message