Subject: -Wl,-R issue
To: None <tech-pkg@netbsd.org>
From: Julio Merino <slink@unixbsd.org>
List: tech-pkg
Date: 04/13/2002 00:19:17
--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all

I'm packaging the program TeXmacs. Everything was working fine until I
set PKG_DEVELOPER to yes (although the program seems to be working fine).
When installing, it fails complaining that libraries won't be able to
find other libs. It suggests adding -Wl,-R... flags in the Makefile, so
everything will work fine.

So, I've added:
LDFLAGS+=3D       -Wl,-R${LOCALBASE}/libexec/${PKGNAME}/lib
Where PKGNAME is TeXmacs-1.0.0.2, which matches the installation dir.

The problem is that the compilation does not take care about it. I'm
thinking about the need to patch some files, but as I've been looking at
the compilation log, I've seen something strange.

While some libraries are built I see the following argument passed to
the compiler: -Wl,-R/usr/pkg/lib. I get impressed about how it's getting
there. I've taken a look to bsd.pkg.mk, and I see where this is defined;
it looks completly "normal", so I can't understand why that flag is
beeing used but mine is not.

So what should I do?

Thanks.

--=20
Of course it runs NetBSD - http://www.netbsd.org
Julio Merino <jmmv@hispabsd.org>

--PNTmBPCT7hxwcZjr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8t11lzz00ZOPKycwRAq9RAJ0ZRfYX7zQlZ5blxf27vcFwiwHrcQCglks0
MzO8Y2bEWrR6d6Vl9izfCpc=
=daD2
-----END PGP SIGNATURE-----

--PNTmBPCT7hxwcZjr--