Created attachment 309977 [details] emerge build log i have cross-compile settings like so: CHOST=armv7a-cros-linux-gnueabi CFLAGS="-O2 -pipe -g -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp" CXXFLAGS="${CFLAGS}" when i emerge opencv for that, it fails. see the attached log -- this is after adding --trace to cmake-utils.eclass. i also ran it through strace, and it seems that gcc/g++ is being tested with the target CFLAGS/CXXFLAGS instead of using the compiler values that were setup in the gentoo cmake config override. i don't know if this is a failing in cmake or opencv, but i'd believe either. simply adding `tc-export CC CXX` before calling cmake "fixed" things -- the right compilers get tested with the right flags and the build succeeds.
Created attachment 309979 [details] strace log log has been edited & truncated to make it fit in the upload limit, but i think you should still be able to pick out the failing pieces
I've added the workaround with tc-export in 2.4.5; I can't see how it would hurt anything. If you want a better solution on the long run just re-open the bug please, but I can't really promise anything...
*** Bug 443498 has been marked as a duplicate of this bug. ***