Re: [Qemu-devel] [PATCH 13/39] properly detect compiler in tests/Makefile

2010-10-13 Thread Blue Swirl
On Wed, Oct 13, 2010 at 7:19 AM, Paolo Bonzini wrote: > On 10/12/2010 09:04 PM, Blue Swirl wrote: >>> >>> diff --git a/tests/Makefile b/tests/Makefile >>> index ff7f787..a789e2d 100644 >>> --- a/tests/Makefile >>> +++ b/tests/Makefile >>> @@ -64,11 +64,21 @@ linux-test: linux-test.c >>>        $(C

Re: [Qemu-devel] [PATCH 13/39] properly detect compiler in tests/Makefile

2010-10-13 Thread Paolo Bonzini
On 10/12/2010 09:04 PM, Blue Swirl wrote: diff --git a/tests/Makefile b/tests/Makefile index ff7f787..a789e2d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -64,11 +64,21 @@ linux-test: linux-test.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lm # speed test +ifeq ($(shell uname -m), x8

Re: [Qemu-devel] [PATCH 13/39] properly detect compiler in tests/Makefile

2010-10-12 Thread Blue Swirl
On Tue, Oct 12, 2010 at 1:00 PM, Paolo Bonzini wrote: > `make speed' only makes sense if not cross-compiling, so sha1 can > use the CC for the system that is hosting qemu.  sha1-i386 is also > wrong, since there is usually no variable for the target CC; guess > some plausible values. > > Signed-of

[Qemu-devel] [PATCH 13/39] properly detect compiler in tests/Makefile

2010-10-12 Thread Paolo Bonzini
`make speed' only makes sense if not cross-compiling, so sha1 can use the CC for the system that is hosting qemu. sha1-i386 is also wrong, since there is usually no variable for the target CC; guess some plausible values. Signed-off-by: Paolo Bonzini --- tests/Makefile | 14 -- 1