git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] dietlibc compatibility
@ 2005-12-24 12:10 Eric Wong
  2005-12-24 12:11 ` [PATCH 1/4] git.c: extra #include for dietlibc (and possibly other C libraries) Eric Wong
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: Eric Wong @ 2005-12-24 12:10 UTC (permalink / raw)
  To: git list

I've started statically-linking git binaries against dietlibc to avoid
having to recompile it for every machine/distro and chroot (lots!) I
would use it in.

For building git (on a Debian unstable system with dietlibc-dev),
I used the following make vars:

	CC=diet -v gcc
	NO_STRCASESTR=YesPlease
	NO_SETENV=YesPlease

The dietlibc setenv() doesn't seem very nice to **envp in git.c,
resulting in $PATH being clobbered when it runs execve().  This
caused tests to fail.  Fortunately, gitsetenv() saved the day.

The following patches fix other issues I had with dietlibc.

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2005-12-30 23:01 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-24 12:10 [PATCH 0/4] dietlibc compatibility Eric Wong
2005-12-24 12:11 ` [PATCH 1/4] git.c: extra #include for dietlibc (and possibly other C libraries) Eric Wong
2005-12-26 17:01   ` Junio C Hamano
2005-12-24 12:12 ` [PATCH 2/4] short circuit out of a few places where we would allocate zero bytes Eric Wong
2005-12-24 12:44   ` Johannes Schindelin
2005-12-28  4:22   ` H. Peter Anvin
2005-12-28  4:38     ` Linus Torvalds
2005-12-28  5:07       ` Junio C Hamano
2005-12-28 16:58       ` H. Peter Anvin
2005-12-24 12:13 ` [PATCH 3/4] add xmktime() function that always accounts for the TZ env Eric Wong
2005-12-24 12:45   ` Johannes Schindelin
2005-12-24 19:18   ` Junio C Hamano
2005-12-24 19:52     ` Eric Wong
2005-12-24 21:10       ` Junio C Hamano
2005-12-24 12:14 ` [PATCH 4/4] git-compat-util.h: dietlibc-friendly x{malloc,realloc,calloc} Eric Wong
2005-12-24 18:28   ` Junio C Hamano
2005-12-24 21:15     ` Eric Wong
2005-12-26 18:16       ` [PATCH] Avoid allocating 0 bytes, was " Johannes Schindelin
2005-12-26 19:10         ` Junio C Hamano
2005-12-26 20:34           ` Johannes Schindelin
2005-12-26 22:03             ` [PATCH] avoid asking ?alloc() for zero bytes Junio C Hamano
2005-12-26 22:18               ` Johannes Schindelin
2005-12-28 20:38             ` [PATCH] Avoid allocating 0 bytes, was Re: [PATCH 4/4] git-compat-util.h: dietlibc-friendly x{malloc,realloc,calloc} Johannes Schindelin
2005-12-30 23:00         ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).