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

Re: Cross-compiling git (was: [PATCHv2] add Android support)

From
Jeff King <peff@peff.net>
Date
May 25, 2011, 15:06 UTC
Message-ID
<20110525150655.GA8795@sigill.intra.peff.net>
In-Reply-To
<201105251620.01116.jnareb@gmail.com>
On Wed, May 25, 2011 at 04:20:00PM +0200, Jakub Narebski wrote:
> Well, the vague sketch of an idea is for Makefile to set uname_*
> variables depending on the contents of `host` / `HOST` build variable,
> so that detection is based on the target OS.

Right. But my point is that there is no uname_* variable that corresponds to Android (at least from me running "uname" on the one Android device I have access to). You need a new variable.

> > Whether you call it "ANDROID=YesPlease" or some other form.
> 
> I think it is better to solve more generic issue of cross-compiling
> Git rather than solving narrow issue of cross-compiling Git on Android.
Sure. But I think there are two orthogonal problems:
  1. How to specify alternate platform defaults when cross-compiling.
  2. When we are compiling for an Android platform, which knobs should
     be tweaked by default, and whether there should be a convenience
     "tweak these Android knobs" switch.

The name of the switch in (2) might be related to how (1) is implemented, but it doesn't have to be.

Anyway, this is all getting a bit too theoretical to be productive. I'm not actually cross-compiling, so I don't really know how well or poorly our current Makefile handles it, let alone the autoconf support on top of our Makefile. So without patches to discuss, I think we're just going in circles.

The original poster just wanted knobs for (2). Having (1) would be neat, but I don't see any reason to hold up (2) if nobody is actually working on (1).

-Peff
Previous: Jakub NarebskiNext: Junio C Hamano
Message 11 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.