This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Add DEFAULT_LIBC=LIBC_BIONIC and ANDROID_DEFAULT=1 to *-android-*
On Dec 16, 2011, at 5:43 PM, H.J. Lu wrote:
> When I configure GCC with i686-linux-android target, don't I get
> linux as vendor and android OS?
No:
$ ./config.sub i686-linux-android
i686-pc-linux-android
pc is the vendor, though, I'd claim this is a misnomer and wrong. A cell phone isn't PC compatible (usually). unknown is the proper vendor, when, you don't want to guess or don't know or don't care. The idea that linux only runs on a PC compatible computer, is, well, dated. It used to be the case it only ran on PCs, but that is no longer true.
In matching, one would generally match i686-*-linux-android if one wanted to. In config.sub land, you'd usually generate i686-unknown-linux-android.
> Adding another arbitrary string as vendor looks very strange to me.
For typing in a triplet, one can use i686-google-linux-android, if one wanted, not that strange. Really, the user should be able to put any string in place of google and it shouldn't matter (except when a target maintainer wants to key off the vendor field for whatever reason).