kvm is built without using $RPM_OPT_FLAGS. qemu/Makefile appears to support
"make CFLAGS=..." builds, but user/Makefile doesn't (setting them that way will
override some needed options or they all need to be redefined) so the fix is a
bit more work than just that, preferably upstream...
Note that we definitely don't want RPM_OPT_FLAGS used for the qemu portions
exactly for the same reasons that we don't want them for qemu in general (we're
using gcc 3.4). kvmctl I'll have to look a little closer at to be more sure of
what we want to do.
$RPM_OPT_FLAGS do not need to be used as is, but they should be used as the
basis and unwanted options filtered out instead of ignoring everything. And
some options from current optflags work with gcc 3.4 too. Rationale for
deviating from them should also be documented in the specfile.
There was a long thread on fedora-devel-list about why qemu _can't_ use the
standard optflags if you want the dyngen stuff to keep working, though. Only
partially due to gcc 3.4 (although istr there _are_ cases where things don't
work with gcc 3.4)
But made it so that we use RPM_OPT_FLAGS where it's appropriate to do so.