git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv2] add Android support

From
Jeff King <peff@peff.net>
Date
May 19, 2011, 17:38 UTC
Message-ID
<20110519173851.GA12295@sigill.intra.peff.net>
In-Reply-To
<AE42113D-8D2F-4B24-A800-D49183152911@gieschke.de>
On Thu, May 19, 2011 at 07:30:49PM +0200, Rafael Gieschke wrote:
Show 6 quoted lines
> > The point of uname_S is that it would be found automatically. Sadly,
> > There is nothing helpful in uname to tell us that we are on android:
> 
> Actually, you can't even call uname as I suspect that you would
> normally not compile on Android (I don't think that gcc runs on
> Android) but always cross-compile.

Good point. Whatever support we provide will need to be user-configured, then.

Show 8 quoted lines
> > So I think we are probably stuck either with the user setting an ANDROID
> > meta-flag that sets the other flags appropriately, or leaving it up to
> > the user to provide a sane config.mak.
> 
> Yes, I agree that leaving it up completely to the user to provide a
> config.mak is a very good option too, especially as build environments
> might be different and some might want to try building with Perl and
> libcurl, which would require a config.mak anyhow.

I don't know enough about Android development to know how much commonality there is between devices and builds. AFAIK, the Android spec itself only provides the Java-callable API. So for Unix-y stuff like this, I have no idea what is on stock Android versus Cyanogen for instance, or even if what is on stock varies from handset to handset.

So yeah, we are probably better not even trying to provide a default set of flags for Android; we can support specific hacks (like your patches 1 and 2) but leave it up to individual build environments to enable them as appropriate.

-Peff
Previous: Rafael GieschkeNext: Rafael Gieschke
Message 6 of 13 in “[PATCHv2] add Android support”
  1. Rafael GieschkeMay 16, 2011
  2. Junio C HamanoMay 19, 2011
  3. Rafael GieschkeMay 19, 2011
  4. Jeff KingMay 19, 2011
  5. Rafael GieschkeMay 19, 2011
  6. Jeff KingMay 19, 2011
  7. Rafael GieschkeMay 19, 2011
  8. Cross-compiling git (was: [PATCHv2] add Android support)Jakub Narebski, May 23, 2011
  9. Jeff KingMay 23, 2011
  10. Jakub NarebskiMay 25, 2011
  11. Jeff KingMay 25, 2011
  12. Junio C HamanoMay 19, 2011
  13. Tor ArntsenMay 23, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.