Fix linking for not-so-clever linkers.
commitb75a82b75402c9462cfd2e9891d2fbe7ce6239f4
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 10 Jul 2006 11:40:44 +0000 (10 13:40 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 10 Jul 2006 21:48:56 +0000 (10 14:48 -0700)
treed70c0a06b34591346ed15c0603bd05e1f06f94cd
parentf443455a5bb1f274dc7a14f09bbbcb931f4388a2
Fix linking for not-so-clever linkers.

On one of my systems, the linker is not intelligent enough to link with
pager.o (in libgit.a) when only the variable pager_in_use is needed. The
consequence is that the linker complains about an undefined variable. So,
put the variable into environment.o, where it is linked always.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
environment.c
pager.c