Duke3d cannot compile with -Os option. Only -O3 is filtered in both ebuilds, but -Os doesn't work as well. Reproducible: Always my make.conf: CFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" CHOST="i686-pc-linux-gnu"
Created attachment 139790 [details, diff] proposed patch for duke3d-20040817-r2.ebuild patch for duke3d-20040817-r2.ebuild similar change should be applied to -r1 ebuild as well
one more detail: 20040817-gcc4.patch file is not used at all. ebuild use duke3d-20040817-gcc4.patch instead.
strip-flags instead.