This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add Android related compilation options and multilib options


On Tue, Jun 16, 2009 at 2:50 AM, Jing Yu<jingyu@google.com> wrote:
> This patch does three things:
>
> 1. Add -mandroid option to the compiler.
> ? (This part was originally written by Doug Kwan dougkwan@google.com
> for gcc-4.3.1)
> ? ?With this option, users can easily compile programs for android.
> ? ?Suppose arm-eabi-gcc is built with android sysroot. Then we can use a simple
> ? ? ?command to compile a program:
> ? ?eg. ?arm-eabi-gcc -mandroid hello.c -o hello

Why don't you add android as a os variant and configure
for a arm-eabi-android target instead?

Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]