In the Lame 3.93.1-r1 ebuild, there are 3 lines which are supposed to strip -fomit-frame-pointer for a specific arch. What they in fact do is strip for every arch all compiler flags, which results in strange behaviour, as for some reason -O2 is not stripped, but -O3 not, making -O3 twice as slow as -O2. Commenting the last 3 lines from here: # take out -fomit-frame-pointer from CFLAGS if k6-2 is-flag "-march=k6-3" && strip-flags "-fomit-frame-pointer" is-flag "-march=k6-2" && strip-flags "-fomit-frame-pointer" is-flag "-march=k6" && strip-flags "-fomit-frame-pointer" Fixes this, but probably causes trouble for -march=k6. Probably should be something like filter-flags, and another way of checking wether it's a K6. Reproducible: Always Steps to Reproduce: 1.emerge lame 2.Notice no flags (except for -O2) Actual Results: unoptimized build Expected Results: optimized build
That should be filter-flags not strip-flags. emerge sync and emerge lame. Thanks.