Date: Sat, 30 Mar 2002 16:50:21 -0500 From: Will Andrews <will@csociety.org> To: Donn Miller <dmmiller@cvzoom.net> Cc: Kris Kennaway <kris@obsecurity.org>, ports@freebsd.org Subject: Re: Optimizations and XFree86-4-libraries port Message-ID: <20020330215020.GC63817@squall.waterspout.com> In-Reply-To: <3CA5B156.8050201@cvzoom.net> References: <3CA45DF1.3020201@cvzoom.net> <20020329093937.G45029@xor.obsecurity.org> <3CA5B156.8050201@cvzoom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020330215020.GC63817>