[wplug] GCC opts? How to pass through ./configure?

Rick Smith rick at rbsmith.com
Thu Jun 12 16:25:25 EDT 2003


On Thu, Jun 12, 2003 at 03:07:45PM -0400, billings at negate.org wrote:
> On Thu, 2003-06-12 at 14:56, Eric C. Cooper wrote:
> > On Thu, Jun 12, 2003 at 03:52:18PM -0400, John Strange wrote:
> > > Does anyone know how to pass the -03 -mcpu=pentium3 args through a
> > > ./configure script?  I'm not a Makefile expert, and the ones created
> > > from ./configure are pretty thorough so I was hoping someone had some
> > > experience with it.
> > 
> > ./configure and its resulting Makefile will both use the CFLAGS
> > environment variable if set:
> > 
> > $ CFLAGS='-03 -mcpu=pentium3' ./configure
> > 
> > or
> > 
> > $ CFLAGS='-03 -mcpu=pentium3' make
> 
> This is shell-dependant, that works for bash, but not all of us use
> bash.

Good point.  For more portabliity, use env to pass environment
variables to the environment in which the program runs:
    % env CFLAGS='-03 -mcpu=pentium3' make




More information about the wplug mailing list