From b75a82b75402c9462cfd2e9891d2fbe7ce6239f4 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 10 Jul 2006 13:40:44 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- pager.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'pager.c') diff --git a/pager.c b/pager.c index bb14e99735..280f57f796 100644 --- a/pager.c +++ b/pager.c @@ -5,8 +5,6 @@ * something different on Windows, for example. */ -int pager_in_use; - static void run_pager(const char *pager) { execlp(pager, pager, NULL); -- cgit v1.2.1