I masked the lto USE flag for gcc in your profiles since you're both missing keywords on dev-libs/elfutils which is a dependency in 4.5 (4.6 dropped the requirement). Please keyword it or let me know if it can stay masked. m68k, I also masked the graphite flag because you don't have dev-libs/ppl (bug #269087) and dev-libs/cloog-ppl (bug #269088). You also somehow have 4.5 keyworded without dev-libs/mpc which is an hard dependency (bug #279851).
Created attachment 281111 [details, diff] gcc-4.5.2.ebuild.patch On FreeBSD, dev-libs/libelf is required from system package and it collide with dev-libs/elfutils, so it cannot be keyworded. OTOH as I read GCC Wiki page[1], it seems libelf also work well for it. I don't know it's really working (optimizing) or not, but this patch applied gcc-4.5.2 was built well and accept commands like "gcc -flto -c foo.c" and "gcc -flto -o foo foo.o". Please apply this patch if you don't see any problem. Thanks, [1] http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
Thanks, I'll apply that shortly.
Done.
done in the tree