[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] configure: some fixes for OpenBSD
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] configure: some fixes for OpenBSD |
Date: |
Fri, 24 Aug 2012 14:02:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
Il 24/08/2012 14:00, Brad Smith ha scritto:
>>>>> > >> > 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.
>> >
>> > Right, we should support GNU triplets and a --host argument, and replace
>> > uname checks with pattern matching on the triplet.
> That still requires a means of generating that triplet in the first place.
That's what GNU config.guess is for, but it is only used in the
non-cross-compilation case. QEMU's homegrown configure hardly
distinguishes between native and cross builds.
Paolo