Apparently the ebuild doesn't pass the CFLAGS/CXXFLAGS correctly to scons. Yafaray scons requires the syntax: scons CCFLAGS="blalabla". Setting the env CCFLAGS or CXXFLAGS has no effect. Reproducible: Always Steps to Reproduce: 1. set a CFLAG or CXXFLAG 2. emerge 3. watch how every compilation uses NO cflags 4. Now do the same with scons CCFLAGS="test", and watch how that flag IS used. Actual Results: Slow raytracing. Expected Results: Fast raytracing (as a result of code beeing optimized)
Can be fixed easily by adding user_config "CCFLAGS=\"${CXXFLAGS}\"" in src_configure() { in yafaray-0.1.1.ebuild (If you ignore or fix the manifest file)
Tested and worked, renders the same scene in 7 seconds now instead of 35 secs.
fixed in cvs, thanks for the report and fix. you may resync your tree in about an hour and remerge yafaray. 02 Jan 2010; Markus Meier <maekke@gentoo.org> yafaray-0.1.1.ebuild: respect $CXXFLAGS by Killian De Volder in bug #299185