Web lists-archives.com

Re: Can't build first git commit




On Wed, Mar 06, 2019 at 03:39:11PM -0500, Santiago Torres wrote:

> I still find it somewhat astounding that it compiles with a modern
> toolchain after 15+ years. Many projects fail to do so (it's an
> understandably high bar to have).

I think the key thing is that Git has very few external dependencies.
You'll note that I had to turn off OpenSSL support to get it to compile.
The only other library from back then is libz, which is extremely
stable.

Other than, it just depends on a reasonable C compiler and a POSIX libc,
both of which have been standardized for decades.

I suspect that today's Git will also compile pretty well in 15 years,
but you'll probably to say NO_GETTEXT and turn a few other knobs.
Libcurl might eventually be a problem, though I've been pretty impressed
with its stability and backwards-compatibility so far (and of course
it's optional if disabling http support is OK).

-Peff