Subject: Re: vim, ncurses, and darwin
To: Rob Latham <rob@terizla.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: tech-pkg
Date: 03/04/2002 12:47:17
On Sun, Mar 03, 2002 at 03:33:39AM -0600, Rob Latham wrote:
> I'm trying to build vim on Darwin. vim brings in ncurses.buildlink,
> but when i build on Darwin, some confiugre tests fail like this:
> 
> configure:5301: cc -pipe -o conftest -g -I/var/tmp/editors/vim/work.powerpc/.bui ldlink/include  -I/usr/local/include  -L/usr/local/lib conftest.c -lncurses 1>& 5
> /usr/bin/ld: can't locate file for: -lncurses
> 
> Evidently CFLAGS is getting the right buildlink information, but i
> cannot find where that's getting set, nor can i find how to make
> LDFLAGS get the buildlink information it needs at the configure step.

The likely cause of this is that the configure script resets LDFLAGS
instead of appending to it like it's supposed to.  It should be possible
to find the line in the configure script that does this and just remove
it.

	Cheers,

	-- Johnny Lam <jlam@netbsd.org>