From: Junio C Hamano Date: Mon, 10 Jul 2006 21:48:44 GMT Subject: Re: [PATCH] Fix linking for not-so-clever linkers. Message-ID: <7vlkr19lmr.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > On Mon, 10 Jul 2006, Junio C Hamano wrote: >> >> Johannes Schindelin writes: >> >> > 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. >> >> I do not understand this quite yet -- which executable is your >> linker building when it does this? >> Maybe we need ranlib? > > Shouldn't be needed, since we use "$(AR) rcs",... > ... After all, that was the > whole reason environment.c ended up existing in the first place.. Understood and agreed to everything you said. But I still wonder why/how it happens in Johannes's environment...