summaryrefslogtreecommitdiffstats
path: root/tests/tcg/Makefile
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-04-29 12:09:24 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-05-07 21:00:43 +0400
commitad0a118fa322b39887938185911d4fb332617b5c (patch)
treea7fb86d47dadb1d120d39bcd7f2d60102a31701c /tests/tcg/Makefile
parent8e8be266af067277664c96670c779d8924b4d61e (diff)
downloadhqemu-ad0a118fa322b39887938185911d4fb332617b5c.zip
hqemu-ad0a118fa322b39887938185911d4fb332617b5c.tar.gz
tests/tcg: Fix compilation of test_path
The test_path binary is (unlike the other test binaries in tests/tcg) actually intended to be compiled with the same compiler used to build the main QEMU executables. It actually #includes a number of the QEMU source files in an attempt to unit-test the util/path.c functions, and so if it is not compiled with the same compiler used by configure to set CONFIG_ settings then it is liable to fail to build. Fix the makefile to build it with the default C compiler rules, not CC_I386, and fix the test itself not to include a lot of unnecessary trace related source files which cause the build to fail if the trace backend is anything other than 'simple'. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests/tcg/Makefile')
-rw-r--r--tests/tcg/Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
index 24e3154..89e3342 100644
--- a/tests/tcg/Makefile
+++ b/tests/tcg/Makefile
@@ -81,10 +81,8 @@ run-test_path: test_path
# rules to compile tests
test_path: test_path.o
- $(CC_I386) $(LDFLAGS) -o $@ $^ $(LIBS)
test_path.o: test_path.c
- $(CC_I386) $(QEMU_INCLUDES) $(GLIB_CFLAGS) $(CFLAGS) -c -o $@ $^
hello-i386: hello-i386.c
$(CC_I386) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $<
OpenPOWER on IntegriCloud