Recent mplayer-1.0_pre7.ebuild includes a new USE flag, custom-cflags, that allow the user to choose if use the Gentoo system CFLAGS or the default mplayer CFLAGS. This is useful because mplayer developers don't accept bug reports for mplayer compiled with different CFLAGS and the default ones are more extreme (-O4) than sane CFLAGS a normal user could want. Even though xine developers aren't so severe about this question, xine-lib provide their CFLAGS and I'd like to be able to choose the set of CFLAGS as well.
Created attachment 58555 [details, diff] xine-lib-1.0.1-r1-ebuild-add-custom-cflags.patch patch to add custom-cflags USE flag to xine-lib-1.0.1-r1.ebuild
I don't like this actually. Mainly because xine-lib doesn't ignore user-defined cflags but just cut them down to "usable" ones. So this is not going to be added, sorry.
to the contrary for example, an user-defined -O2 override xine-defined -O3
Keep in mind that I'm defaulting to the mplayer factory cflags since are working correctly and most bugs I have been forced to close were about cflags issues...