qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonni


From: Blue Swirl
Subject: Re: [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonnie Mendez)
Date: Tue, 25 Nov 2008 19:37:25 +0200

On 11/25/08, Anthony Liguori <address@hidden> wrote:
> Thiemo Seufer wrote:
>
> > It shouldn't try to compile, for the sake of cross portability. Rather
> > something like
> >
> > gcc -E -dM -xc /dev/null |grep __linux__
> >
> > This checks if the compiler in use is a Linux compiler.
> >
> >
>
>  Good enough, but I wonder why you think it shouldn't compile for the sake
> of cross portability?
>
>  The cross compiler should be able to create an executable.  You don't have
> to run it, you just have to rely on #error causing compilation to fail.

There is a small problem: in configure, we want to parse the command
line options for things like cpu, compiler flags etc. So the OS or CPU
detection should be after that.

Currently the CPU from uname is used to modify the OS flags even
before command line options are handled, this seems to be broken.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]