qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] configure: some fixes for OpenBSD


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] configure: some fixes for OpenBSD
Date: Fri, 24 Aug 2012 10:55:10 +0100

On 24 August 2012 10:47, Brad Smith <address@hidden> wrote:
> OpenBSD's uname works as expected with the -s flag so remove the special
> handling when determining the target OS. Use arch -s to retrieve the
> hardware architecture as uname -m will return the meta architecture
> instead of the hardware architecture (.e.g. macppc vs powerpc).

I'm afraid I think this patch is moving in the wrong direction.
Wherever possible we should be using compiler checks like check_define,
not looking at the output of 'uname' and the like. The former will
work when cross compiling, and the latter will give the wrong answers.
In some places we have that kind of 'look at uname/etc' check but
we should be trying to reduce and eliminate it where possible.

thanks
-- PMM



reply via email to

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