11cde1c810
There was no possibility to add specific cxx flags using the configure file. So A new entrance has been created to support it. Duplication of information in configure and rules.mak. Taking QEMU_CFLAGS and add them to QEMU_CXXFLAGS, now the value of QEMU_CXXFLAGS is stored in config-host.mak, so there is no need for it. The makefile for libvixl was adding flags for QEMU_CXXFLAGS in QEMU_CFLAGS because of the addition in rules.mak. That was removed, so adding them where it should be. Signed-off-by: Bruno Dominguez <bru.dominguez@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1496754467-20893-1-git-send-email-bru.dominguez@gmail.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
15 lines
752 B
Makefile
15 lines
752 B
Makefile
libvixl_OBJS = vixl/utils.o \
|
|
vixl/compiler-intrinsics.o \
|
|
vixl/a64/instructions-a64.o \
|
|
vixl/a64/decoder-a64.o \
|
|
vixl/a64/disasm-a64.o
|
|
|
|
# The -Wno-sign-compare is needed only for gcc 4.6, which complains about
|
|
# some signed-unsigned equality comparisons which later gcc versions do not.
|
|
$(addprefix $(obj)/,$(libvixl_OBJS)): QEMU_CXXFLAGS := -I$(SRC_PATH)/disas/libvixl $(QEMU_CXXFLAGS) -Wno-sign-compare
|
|
# Ensure that C99 macros are defined regardless of the inclusion order of
|
|
# headers in vixl. This is required at least on NetBSD.
|
|
$(addprefix $(obj)/,$(libvixl_OBJS)): QEMU_CXXFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
|
|
|
|
common-obj-$(CONFIG_ARM_A64_DIS) += $(libvixl_OBJS)
|