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: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] configure: fix Darwin target detection
Date: Mon, 18 Aug 2014 15:16:22 +0100

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]