summaryrefslogtreecommitdiffstats
path: root/tests/tcg/i386
diff options
context:
space:
mode:
authorPaolo Bonzini2019-08-07 16:35:21 +0200
committerAlex Bennée2019-09-10 10:38:33 +0200
commit6a9e0ef32a6b519a0c96d3dee5edc1321792c65a (patch)
tree2d4599fa122c7d50031e83c8c1e4f00e33089667 /tests/tcg/i386
parenttests/docker: fix final missing .encode when parsing solibs (diff)
downloadqemu-6a9e0ef32a6b519a0c96d3dee5edc1321792c65a.tar.gz
qemu-6a9e0ef32a6b519a0c96d3dee5edc1321792c65a.tar.xz
qemu-6a9e0ef32a6b519a0c96d3dee5edc1321792c65a.zip
tests/tcg: use EXTRA_CFLAGS everywhere
For i386 specifically, this allows using the host GCC to compile the i386 tests. But, it should really be done for all targets, unless we want to pass $(EXTRA_CFLAGS) directly as part of $(CC). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20190807143523.15917-2-pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg/i386')
-rw-r--r--tests/tcg/i386/Makefile.softmmu-target4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcg/i386/Makefile.softmmu-target b/tests/tcg/i386/Makefile.softmmu-target
index 0a4364868c..cee342017e 100644
--- a/tests/tcg/i386/Makefile.softmmu-target
+++ b/tests/tcg/i386/Makefile.softmmu-target
@@ -32,11 +32,11 @@ TESTS+=$(MULTIARCH_TESTS)
.PRECIOUS: $(CRT_OBJS)
%.o: $(CRT_PATH)/%.S
- $(CC) $(CFLAGS) -c $< -o $@
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
# Build and link the tests
%: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS)
- $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
memory: CFLAGS+=-DCHECK_UNALIGNED=1