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

Re: How to compile Git with NDK?

From
Stefan Beller <stefanbeller@gmail.com>
Date
Sep 22, 2014, 21:22 UTC
Message-ID
<54209333.7090300@gmail.com>
In-Reply-To
<CAHd499C3iwpcGf+Zt+jDJfqW41P=6Uu=b8VGZKJpFZCtw56beg@mail.gmail.com>
On 22.09.2014 21:04, Robert Dailey wrote:
Show 19 quoted lines
> I run the following on Ubuntu:
> 
> fe@BLD01:~/code/git$ autoconf
> fe@BLD01:~/code/git$ ./configure --prefix=/home/fe/git-arm
> --build=x86_64-linux-gnu --host=arm-linux-androideabi
> configure: Setting lib to 'lib' (the default)
> configure: Will try -pthread then -lpthread to enable POSIX Threads.
> configure: CHECKS for site configuration
> checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc
> checking whether the C compiler works... no
> configure: error: in `/home/fe/code/git':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> 
> 
> I have my NDK's prebuilt GCC 4.8 toolchain on PATH (the bin folder).
> Can someone help me cross compile Git using Android NDK toolchain?
> 
> Thanks.
You don't need autoconf, just type 'make' and you'll be fine.
Please read the file INSTALL for installation instructions.
    Stefan
Previous: Robert DaileyNext: Robert Dailey
Message 2 of 6 in “How to compile Git with NDK?”
  1. Robert DaileySep 22, 2014
  2. Stefan BellerSep 22, 2014
  3. Robert DaileySep 23, 2014
  4. Robert DaileySep 23, 2014
  5. Jeff KingSep 23, 2014
  6. Jeff KingSep 23, 2014

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.