Re: [HEADS UP][RFC] Changes to the trascode 1.2.0+ installed tree (2/2)
Alexis Ballier <[email protected]> Sat, 5 Dec 2009 12:12:02 +0100
| Newsgroups | gmane.comp.video.transcode.devel |
|---|---|
| Organization | Gentoo |
| Message-ID | <[email protected]> |
--Sig_/3GmhIw2M47AD/QM=ia.2.Sw Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, > I know there are better and more elegant solution involvingthe ELF > header and the RPATH/RUNPATH field, but I think tha above is the most > portable and debuggable, since AFAIK we got a fair MacOsX userbase > and since I had no reliable access to any OSX box (neither I'll have > into the foreseeable future) I don't want to harm them unless it > becomes absolutely unavoidable. Since you're using libtool, I don't think you'll have to mess with all that and use a wrapper (which may not work in all cases, think about a multilib setup with x86_32 & x86_64 support or a /home install). In a project of mine, I'm using internal libs like what you wanna do, all I have to do is to add stuff like that: foo_LDADD =3D $(top_builddir)/path/to/libbar.la and add things like that for libbar: libbardir =3D $(libdir)/mypetprogram libtool will play the rpath game by itself at install time. If I take tcmp3cut as an example, this should be as simple as replacing: noinst_LTLIBRARIES =3D libtc.la by: libtc_LTLIBRARIES =3D libtc.la libtcdir =3D $(libdir)/transcode-$version since tcmp3cut already uses libtc.la to link, libtool should do the rest of the work for you :) Regards, Alexis. --Sig_/3GmhIw2M47AD/QM=ia.2.Sw Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAksaQAIACgkQvFcC4BYPU0p70gCgyPyM2MZ1MFf50i0hCJKMcu0v L44AniLTQ2ZR1YtDlYWljRJsPcp8kRIr =LA+k -----END PGP SIGNATURE----- --Sig_/3GmhIw2M47AD/QM=ia.2.Sw--