From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
by finch.gentoo.org with esmtp (Exim 4.60)
(envelope-from <gentoo-embedded+bounces-3916-garchives=archives.gentoo.org@lists.gentoo.org>)
id 1Q8vEh-0004Np-FW
for garchives@archives.gentoo.org; Sun, 10 Apr 2011 14:03:31 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
by pigeon.gentoo.org (Postfix) with SMTP id 1C6521C088
for <garchives@archives.gentoo.org>; Sun, 10 Apr 2011 14:03:30 +0000 (UTC)
Received: from mail-gw0-f53.google.com (mail-gw0-f53.google.com [74.125.83.53])
by pigeon.gentoo.org (Postfix) with ESMTP id CAEB71C05F
for <gentoo-embedded@lists.gentoo.org>; Sun, 10 Apr 2011 13:43:29 +0000 (UTC)
Received: by gwj20 with SMTP id 20so2608283gwj.40
for <gentoo-embedded@lists.gentoo.org>; Sun, 10 Apr 2011 06:43:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type;
bh=hwQtDK7uhg7zoM6EhC+bRk8/phAgNSYvvsKsnZk/h5Y=;
b=L8T+HM5C86ACYWmWjTX/bD2PF6FzeU1dqQCShXRkA1ufP9g+eZitjPJDPAbM2jUKtp
wHkvmto2DIDXpdZZGk+3GqBrg4FgCC47G7rBFMdtoR48nLUqttCaSnr/HC5FT3c1a6h3
DKrXMmjAxbo/jrTMULAED9dpCk+U6gCxmSY8g=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type;
b=Ns2Pq+GmsNNz/vyMJuLRGKTFM1fDKZi0uq2lgBPamoXByWmaGVL4/NLBnGbbzFw9yY
oLplRj0MEftIIXxNyxFL2onJ8On5T1CMRjG5n4Va31aG5H5GR+09yKg+nzHXgt+icIEa
y77Rsukzn6P/rhikEWB1Uls+dPyObBagrtmU8=
Received: by 10.91.181.8 with SMTP id i8mr3711870agp.94.1302443009138; Sun, 10
Apr 2011 06:43:29 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@lists.gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.91.123.5 with HTTP; Sun, 10 Apr 2011 06:43:09 -0700 (PDT)
In-Reply-To: <BANLkTimjx4Rjh-=V6-M+cy0AvjE1PmRP9Q@mail.gmail.com>
References: <BANLkTins3N-9fMsfoeU-Lq6SeoGbp1rhSA@mail.gmail.com>
<4D9BA86A.4040705@tampabay.rr.com> <BANLkTini4yt3Czm7S=gKAV=S4U-ZeCbLfg@mail.gmail.com>
<201104070043.15110.vapier@gentoo.org> <BANLkTikRWoBrpqFoTxHmJ1frXxEFo9tDTA@mail.gmail.com>
<BANLkTimjx4Rjh-=V6-M+cy0AvjE1PmRP9Q@mail.gmail.com>
From: Christopher Friedt <chrisfriedt@gmail.com>
Date: Sun, 10 Apr 2011 09:43:09 -0400
Message-ID: <BANLkTint=D3SubE3HaTrTom-c6kdq0n-ZQ@mail.gmail.com>
Subject: Re: [gentoo-embedded] gcc-4.6 / bionic
To: gentoo-embedded@lists.gentoo.org
Content-Type: text/plain; charset=ISO-8859-1
X-Archives-Salt:
X-Archives-Hash: 10439d4101f96cc009ea06acc6945f1c
Hrrmm... gnuconfig has alreaded added linux-android* upstream for
their system types in config.sub but using 'android' as a descriptor
for the libc really wouldn't make sense if it wasn't an Android
system.
It would probably be prudent to add linux-android* | linux-bionic* ...
there are a few significant differences. I guess the main
differentiators would be FHS (android prefixes everything with
/system), support for /etc/passwd, /etc/group, /etc/resolv.conf,
crypt(3), getpwnam(3), getgrnam(3), and essentially any other missing
feature that people might want to add in the future.
They also don't have an entry in config.guess for LIBC=android (or
LIBC=bionic). Something like this would work.
...
# ifdef __BIONIC__
# ifdef __ANDROID__
LIBC=android
# else
LIBC=bionic
# endif
# else
LIBC=gnu
# endif
...
I'll add a gnuconfig revision with those changes in my overlay.
To me, it just makes sense to differentiate this way... of should
still be possible to build an Android toolchain, so I'll add
IUSE=android to the bionic ebuild. The bionic ebuild is otherwise
done, but I still have to add something for
crosscompile_opts_headers-only before it works with crossdev.
Cheers,
C