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

Re: git binary size...

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Jan 12, 2006, 17:37 UTC
Message-ID
<43C693CF.3020800@zytor.com>
In-Reply-To
<43C65E70.7090702@op5.se>
Andreas Ericsson wrote:
Show 8 quoted lines
>>
>> To make git not tight to Linux, but cross platform, consider autoconf.
> 
> git is already fairly portable without the autoconf hackery. It's easy 
> enough to move some of the conditional stuff out of the Makefile without 
> autoconf, but it would still require GNU Make, so there's no real point 
> in doing so.
> 

The problem is that one really at some point end up reinventing a whole lot of autoconf.

Now, a lot of autoconf ugliness comes from two sources:
  - Not abstracting appropriately (#ifdef mess)
  - Not using GNU make features

Once you require GNU make, you can have a top-level Makefile and have configure generating MCONFIG and config.h, and have conventional dependencies on those rules. Pretty much the whole autoconstipation should be confined to those two files.

I might eventually try to make a clean patch for autoconf with git, and hopefully show that when done correctly, it's probably cleaner than the increasing Makefile mess, plus it's automatic.

	-hpa
Previous: Andreas EricssonNext: Linus Torvalds
Message 12 of 18 in “git binary size...”
  1. Linus TorvaldsJan 11, 2006
  2. Andreas EricssonJan 11, 2006
  3. H. Peter AnvinJan 11, 2006
  4. Andreas EricssonJan 11, 2006
  5. H. Peter AnvinJan 11, 2006
  6. Andreas EricssonJan 11, 2006
  7. Junio C HamanoJan 11, 2006
  8. Linus TorvaldsJan 11, 2006
  9. H. Peter AnvinJan 11, 2006
  10. Coywolf Qi HuntJan 12, 2006
  11. Andreas EricssonJan 12, 2006
  12. H. Peter AnvinJan 12, 2006
  13. Linus TorvaldsJan 12, 2006
  14. Johannes SchindelinJan 12, 2006
  15. Linus TorvaldsJan 12, 2006
  16. H. Peter AnvinJan 12, 2006
  17. Jon LoeligerJan 20, 2006
  18. Linus TorvaldsJan 12, 2006

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.