Subject: Re: devel/flex dependencies
To: None <tech-pkg@netbsd.org, segv@netctl.net>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 11/04/2005 18:12:22
> From: segv@netctl.net
> 
> bash-3.00# ldd `which flex`
>         libintl.so.2 =>  (file not found)
>         libiconv.so.2 =>         (file not found)
>         libc.so.1 =>     /lib/libc.so.1
>         libm.so.2 =>     /lib/libm.so.2
>         /platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
> 
> flex was built with gcc-4.0.2 and devel/flex/Makefile does not cater for
> libintl and libiconv. Should flex be made to depend on those libraries? Why
> does this happen for gcc-4.0.2 and not gcc-3.3.x?
> 
> I modified mk/compiler/gcc.mk to include support for gcc-4.0.2, could that be
> that the above 2 libraries are not found?

I think you should set this in mk.conf

LDFLAGS+=  -R/usr/pkg/lib