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