[pisa-src] Re: r1173 - Regression

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 22 Oct 2009 12:52:06 +0200

On Fri, Oct 16, 2009 at 12:57:41PM +0200, Thomas Jansen wrote:
> On Thu, Oct 15, 2009 at 04:15:24PM +0200, Diego Biurrun wrote:
> 
> > New Revision: 1173
> > 
> > Log:
> > Globally set default CFLAGS in configure.ac instead of duplicating them
> > in each Makefile.am per subdirectory.
> 
> > --- trunk/configure.ac      Thu Oct 15 15:48:43 2009        (r1172)
> > +++ trunk/configure.ac      Thu Oct 15 16:15:24 2009        (r1173)
> > @@ -174,6 +174,7 @@
> >  
> >  # Our configuration files should be located in a subdirectory of their own.
> >  AC_SUBST(sysconfdir, ${sysconfdir}/pisa)
> > +AC_SUBST(CFLAGS, "-g -O2 -Wall")
> 
> Regression: CFLAGS is overwritten instead of appended. This prevents me from
> building with profiling support the way it used to work:
> CFLAGS=-pg ./configure && make clean && make
> 
> Simply using AC_SUBST(CFLAGS, "$CFLAGS -g -O2 -Wall") results in
> "-g -O2 -g -O2 -Wall" for a simple ./configure and in the expected
> "-pg -g -O2 -Wall" for CFLAGS=-pg ./configure.

Fixed.

Diego

Other related posts: