optionrom: cope with multiple -O options
commit336d5881a927cd80e8c0ff61c7f76b1433f91bb0
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Aug 2016 12:30:11 +0000 (30 14:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Aug 2016 14:28:46 +0000 (30 16:28 +0200)
tree6b60765e8527cd3b943fad4c6722b0eb88bb2847
parent616018352c244d8b0ea4626407b0801844ae0748
optionrom: cope with multiple -O options

Reproducer:

    CFLAGS="-g3 -O0" ./configure --target-list=aarch64-softmmu,arm-softmmu --enable-vhost-net --enable-virtfs

Here CFLAGS ends up with "-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ... -g3 -O0"
and pc-bios/optionrom/Makefile forgets to add the -O2 it needs.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pc-bios/optionrom/Makefile