qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] configure: fix Darwin target detection


From: Iorga, Cristian
Subject: Re: [Qemu-devel] [PATCH] configure: fix Darwin target detection
Date: Mon, 18 Aug 2014 14:59:41 +0000

Hello Peter,

We cross-compile from a X86-64 Linux host to a MacOSX/Darwin target.
The target CPU is passed on explicitly.
Indeed, sysctl will not work; but the patch does not touch that area, others 
can fix that if there is interest.

Regards,
Cristian Iorga
Yocto Project
Intel Corporation

-----Original Message-----
From: Peter Maydell [mailto:address@hidden 
Sent: Monday, August 18, 2014 5:16 PM
To: Iorga, Cristian
Cc: QEMU Developers
Subject: Re: [Qemu-devel] [PATCH] configure: fix Darwin target detection

On 18 August 2014 10:36, Cristian Iorga <address@hidden> wrote:
> fix Darwin target detection for qemu
> cross-compilation.
>
> Signed-off-by: Cristian Iorga <address@hidden>
> ---
>  configure | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/configure b/configure
> index 283c71c..1c66a11 100755
> --- a/configure
> +++ b/configure
> @@ -444,6 +444,8 @@ elif check_define __sun__ ; then
>    targetos='SunOS'
>  elif check_define __HAIKU__ ; then
>    targetos='Haiku'
> +elif check_define __APPLE__ ; then
> +  targetos='Darwin'
>  else
>    targetos=`uname -s`
>  fi

You cross compile to Darwin? From which host?
This patch seems like it would be necessary but not sufficient, since for 
instance code further on in configure tries to run sysctl to check for 32 bit 
or 64 bit compile, which won't work if you're cross compiling.
Or do you explicitly pass configure a --cpu argument?

thanks
-- PMM

reply via email to

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