On 28 April 2014 20:35, Peter Maydell <peter.mayd...@linaro.org> wrote: > --- a/tests/tcg/Makefile > +++ b/tests/tcg/Makefile > @@ -81,10 +81,10 @@ run-test_path: test_path > # rules to compile tests > > test_path: test_path.o > - $(CC_I386) $(LDFLAGS) -o $@ $^ $(LIBS) > + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) > > test_path.o: test_path.c > - $(CC_I386) $(QEMU_INCLUDES) $(GLIB_CFLAGS) $(CFLAGS) -c -o $@ $^ > + $(CC) $(QEMU_INCLUDES) $(GLIB_CFLAGS) $(CFLAGS) -c -o $@ $^
In fact we can drop these CC lines altogether (going back to the situation before commit f62cb1b6d) -- we failed to notice then that test_path is an oddball, being a host binary rather than a target binary, unlike all the other files being compiled in this directory. (Also means _GNU_SOURCE needs to be removed from the .c file as otherwise the compiler complains that it's defined on the command line and in the c file.) thanks -- PMM