Subject: Re: pkg/8649: Build of windowmaker fails
To: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
From: Greg A. Woods <woods@most.weird.com>
List: netbsd-bugs
Date: 10/22/1999 11:27:06
[ On Friday, October 22, 1999 at 09:36:26 (-0400), Bill Sommerfeld wrote: ]
> Subject: Re: pkg/8649: Build of windowmaker fails
>
> > After pkg_delete'ing the old version, the compile succseeded. This never
> > was the case before. For no other package.
> >
> > Thanks for all that sent suggestions
>
> I saw the same problem today when building pilot-link on arm32..
> sigh..
This sounds very much like the issue I reported in tech-pkg.
The build is finding an older installed library *before* the local
libraries becuase of the way bsd.pkg.mk prepends "-L${PREFIX}/lib" to
LDFLAGS instead of appending it after any "-L" options the package might
add itself.
I'm beginning to think that "-L${PREFIX}/lib" should *never* be added to
LDFLAGS by bsd.pkg.mk and that if any locally installed libraries are
required from some other package, and if ``this'' package's
configuration and build system isn't smart enough to find them on its
own then LDFLAGS should only ever be modified directly in its Makefiles
by a patch, never by putting it in the environment or on a command-line.
I.e. it is *never* correct to prepend "-L${PREFIX}/lib" arbitrarily to
the value of LDFLAGS. It should always be *appended*, if used at all.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>