Received: from eggs.gnu.org ([2001:4830:134:3::10]:51417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4UHC-000360-9F for qemu-devel@nongnu.org; Tue, 08 Jul 2014 08:13:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4UHA-00087b-K9 for qemu-devel@nongnu.org; Tue, 08 Jul 2014 08:13:37 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:48795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4UHA-00086v-Dz for qemu-devel@nongnu.org; Tue, 08 Jul 2014 08:13:36 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1X4UH2-0003Gc-W6 for qemu-devel@nongnu.org; Tue, 08 Jul 2014 13:13:28 +0100 From: Peter Maydell Date: Tue, 8 Jul 2014 13:13:26 +0100 Message-Id: <1404821608-12529-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1404821608-12529-1-git-send-email-peter.maydell@linaro.org> References: <1404821608-12529-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 1/3] disas/libvixl: prepend the include path of libvixl header files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Stefano Stabellini Currently the Makefile of disas/libvixl appends -I$(SRC_PATH)/disas/libvixl to QEMU_CFLAGS. As a consequence C++ files that #include "utils.h", such as disas/libvixl/a64/instructions-a64.cc, are going to look for utils.h on all the other include paths first. When building QEMU as part of the Xen make system, another unrelated utils.h file is going to be chosen for inclusion, causing a build failure: In file included from disas/libvixl/a64/instructions-a64.cc:27:0: /qemu/disas/libvixl/a64/instructions-a64.h:88:64: error: 'rawbits_to_float' was not declared in this scope const float kFP32PositiveInfinity = rawbits_to_float(0x7f800000); Fix the problem by prepending (rather than appending) the libvixl include path to QEMU_CFLAGS. Signed-off-by: Stefano Stabellini Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- disas/libvixl/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disas/libvixl/Makefile.objs b/disas/libvixl/Makefile.objs index 0adb3ce..17e6565 100644 --- a/disas/libvixl/Makefile.objs +++ b/disas/libvixl/Makefile.objs @@ -3,6 +3,6 @@ libvixl_OBJS = utils.o \ a64/decoder-a64.o \ a64/disasm-a64.o -$(addprefix $(obj)/,$(libvixl_OBJS)): QEMU_CFLAGS += -I$(SRC_PATH)/disas/libvixl +$(addprefix $(obj)/,$(libvixl_OBJS)): QEMU_CFLAGS := -I$(SRC_PATH)/disas/libvixl $(QEMU_CFLAGS) common-obj-$(CONFIG_ARM_A64_DIS) += $(libvixl_OBJS) -- 1.9.1