This is the mail archive of the
mailing list for the GCC project.
Re: Add Android related compilation options and multilib options
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Jing Yu <jingyu at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Doug Kwan (關振紱) <dougkwan at google dot com>, Ian Lance Taylor <iant at google dot com>, nickc at redhat dot com, paul at codesourcery dot com
- Date: Tue, 16 Jun 2009 15:27:47 +0100
- Subject: Re: Add Android related compilation options and multilib options
- References: <firstname.lastname@example.org>
On Mon, 2009-06-15 at 17:50 -0700, Jing Yu wrote:
> This patch does three things:
Please post separate messages for independent patches.
> 1. Add -mandroid option to the compiler.
> (This part was originally written by Doug Kwan email@example.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
As previously stated by others, I think this is a bad idea; it should be
done as a new configuration. It doesn't make sense to be able to
specifiy -mandroid if you've got a symbianOS or a netbsd compiler.
> 2. Add mandroid multilib option and armv7a multilib option.
the first of these should go away once you've got a separate