build: Move QEMU_INCLUDES before QEMU_CFLAGS
commit76dc3cf82c1fa4afc4b67f60318d90355ded8fb3
authorJiri Denemark <jdenemar@redhat.com>
Wed, 10 Aug 2011 10:04:34 +0000 (10 12:04 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 12 Aug 2011 13:31:29 +0000 (12 08:31 -0500)
treed404774bea1a374b4db001f074bf188fae5d6199
parent83b2f0a0d810922d3d167153ac612dc187ff9d8f
build: Move QEMU_INCLUDES before QEMU_CFLAGS

This patch fixes build when any of the include paths from QEMU_CFLAGS
contains a header file with similar name to a header file in qemu
sources. I hit it with error.h included by qapi/qapi-types-core.h. GCC
decided to use /usr/include/alsa/error.h instead of qemu's error.h.

Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
rules.mak