Subject: Re: devel/flex dependencies
To: Gilles Dauphin <Gilles.Dauphin@enst.fr>
From: None <segv@netctl.net>
List: tech-pkg
Date: 11/05/2005 00:40:09
On Fri, 4 Nov 2005 18:12:22 +0100 (CET)
Gilles Dauphin <Gilles.Dauphin@enst.fr> wrote:
>
>
> > 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
>
No, that shouldn't be necessary, i.e. it should be handled automatically by
pkgsrc.