Re: Best means to override CXXFLAGS locally

2006-10-22 Thread Ralf Wildenhues
Hello Akim, * Akim Demaille wrote on Sun, Oct 22, 2006 at 01:10:02PM CEST: > >What would be the cleanest means to handle this exception? > > Here is what I did: I think it's much better to do the munging in configure.ac. Store the CFLAGS set by the user and/or AC_PROG_CC in AM_CFLAGS, and overr

Re: Best means to override CXXFLAGS locally

2006-10-22 Thread Akim Demaille
What would be the cleanest means to handle this exception? Here is what I did: - Force automake to generate an object specific rule by using some foo_CXXFLAGS - Open Makefile.in, get the specific rules. - Use LTCOMPILECXX to factor the common part - Append $(MY_NOPTION_CXXFLAGS) to it - rename

Best means to override CXXFLAGS locally

2006-10-22 Thread Akim Demaille
I have this cross-compiler at hand that cannot compile some of my big files (a Bison parser) with -O2. Stacking -O0 on top of -O2 does the trick. But I don't know the recommended way to do that. Since I'd like to the keep the good old -g -O2 for the rest of the compilation, since I don't want t