autoconf
[Top][All Lists]
Advanced

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

Re: How To Configure for Android?


From: Eric Blake
Subject: Re: How To Configure for Android?
Date: Mon, 07 Oct 2013 13:51:01 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9


On 10/07/2013 01:31 PM, Jeffrey Walton wrote:
> Thanks Eric,
> 
>>> I'm not sure why I'm trying to trick the build system with host=arm
>>> since the host is x86_64.
>>
>> You're lying.  You're telling configure that your compiler is on an
>> arm-based host, when it is really on an x86_64-based host.
> OK, thanks.
> 
>> (I don't know the target triple for an android system, unfortunately).
> Yeah, neither do I (for Mac OS X or Android).

But you DO know it :)


> 
> 3) Export the tools:
>   export CPP=arm-linux-androideabi-cpp
>   export CC=arm-linux-androideabi-cc

Your --target triple is therefore:

arm-linux-androideabi

Autoconf-based configure files by default will attempt to use
$TRIPLE-cc, without you having to export CC and lots of other variables,
if you just tell it the right --target name, and if all of your cross
toolchain is consistently named as $TRIPLE-tool.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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