From: Eric Wong Date: Sat, 24 Dec 2005 12:10:07 GMT Subject: [PATCH 0/4] dietlibc compatibility Message-ID: <20051224121007.GA19136@mail.yhbt.net> 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