Ignoring entirely user's CFLAGS is not a good practice, as the user might be trying to use -ggdb, or a specific needed -march value. The attached patch copes with the optimisations problem by using strip-flags and then appending the largefile cflags as they are used already by the package, to maintain the behaviour. This patch is incremental to bug #157785. HTH, Diego
Created attachment 103774 [details, diff] Ebuild patch
fixed in cvs