For some reason the commoncpp2 people put @CXXFLAGS@ into the ccgnu2-config.in file, This makes "ccgnu2-config --flags" output: -I/usr/local/include/cc++2 -Os -march=pentium4 -pipe -I/usr/local/include -D_GNU_SOURCE (or whatever your $CXXFLAGS happen to be at compile time) This is very wrong, and even the newer devel versions that aren't in portage (1.2.4) which includes .pc files for pkg-config do it wrong. I spent an hour or so tracking down where that -march=pentium4 was coming from in my project. :( I'll attach a patch that fixes it, and a fixed ebuild. (This ebuild also contains the fix in BUG #58063 at http://bugs.gentoo.org/show_bug.cgi?id=58063 )
Created attachment 36244 [details] ebuild updated to patch ccgnu2-config, and install docs properly
Created attachment 36245 [details, diff] Patch to fix ccgnu2-config This patch removes @CXXFLAGS@ from the src/ccgnu-config.in because it should not appear in the output of the -config script.
It appears the autoconf and automake stuff needs some serious work. My patch breaks libccext2, and according to David Sugar of Commonc++: "I have already checked in a new branch in cvs, -r stable2, to start sorting this and other issues out in for future releases starting with 1.3...." Should I set this bug to WONTFIX, or just leave it open?
we'll mark it upstream then