While trying to introduce a -ffriend-injection into CXXFLAGS to address bug 141426, I noticed that none of my CXXFLAGS got passed to the compiler invocations. The problem is configure.ac line 56: CXXFLAGS= # AC_PROG_CXX automatically sets CXXFLAGS to -g -O2 if g++ is the C++ compiler and CXXFLAGS hasn't been set, so by setting CXXFLAGS, we can avoid this. I changed that (in the configure script only) to CXXFLAGS="$CXXFLAGS", which does the same for unset CXXFLAGS but keeps the setting if the variable is set. The configure script still appends some other switches after checking they work. Most of them control warnings, and are of no relevance for the generated code. One is the -g switch which is added in any case. Removing that would probably be done easiest by reconfiguring the whole package.
Fixed in 0.12.2_beta-r2. Thanks for pointing that.