Subject: Re: pkg/20448
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 03/07/2003 10:09:42
Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz> wrote:
 
> It works for me on IRIX when building gtexinfo, thanks!
> 
> (But please see below.)
> 
> > Index: devel/gettext-lib/buildlink2.mk
> > ===================================================================
> > RCS file: /cvsroot/pkgsrc/devel/gettext-lib/buildlink2.mk,v
> > retrieving revision 1.18
> > diff -u -r1.18 buildlink2.mk
> > --- devel/gettext-lib/buildlink2.mk	2003/01/05 22:16:53	1.18
> > +++ devel/gettext-lib/buildlink2.mk	2003/03/06 16:58:16
> > @@ -91,7 +91,7 @@
> >  _BLNK_LIBINTL+=		-Wl,-R${BUILDLINK_PREFIX.gettext}/lib
> 
> On IRIX, when using SGI's MIPSpro compiler, linker emits this warning:
> 
> cc  -O2 -I/usr/pkg/include  -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -o
> texindex  texindex.o ../lib/libtxi.a /usr/pkg/lib/libintl.so -lc
> -Wl,-rpath -Wl,/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lintl
> ld32: WARNING 1: Unknown option: R/usr/pkg/lib (ignored).

Yes, here are still some occasional "-Wl,-R/path" flags in some of the
packages, either set explicitly by the packages Makefile or by some
bsd.pkg.mk logic.   Irix MIPSpro compiler uses "-Wl,-rpath,/path", which
is why we have an internal _OPSYS_RPATH_NAME variable.

We should determine an appropriate variable to pass to the MAKE_ENV so
that we can easily patch a packages Makefile to use whatever is needed
rather than hardcoding "-R" in.

-Jan

-- 
Time is an illusion, lunchtime doubly so.