--nextPart2395911.94y2rJkJI3 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Em Monday 29 October 2007 15:27:42 Alexander Neundorf escreveu: > On Monday 29 October 2007, Alexander Neundorf wrote: > > On Monday 29 October 2007, Thiago Macieira wrote: > > > Em Sunday 28 October 2007 21:46:48 Alexander Neundorf escreveu: > > > > > -DKDE4_USE_ALWAYS_FULL_RPATH=3DON > > > > > > > > Objections against making this the default behaviour and removing t= he > > > > option ? > > > > > > No and yes. > > > > > > I have no objections to making it the default. But turning RPATH off = is > > > a requested/required feature for some distributions. > > > > No, no ! > > > > I meant just removing the option "FULL_RPATH" (because this is the > > default then) but of course keeping the option to build without any > > RPATH. > > Ok. If we build libraries always with RPATH, this means all libraries have > to be built always with the RPATH for the build tree and then need to be > linked again when installing with the RPATH for the install tree. > This will make "make install" slower. > > If we don't do this, then programs which are intended to run from the bui= ld > tree will find the libraries from their own RPATH (pointing into the build > tree), e.g. kdeui, but kdeui would already have the RPATH for the install > tree, which would be e.g. /opt/kde4/lib, so it might pick up an older > version of libkdecore. > So, it seems all libraries need to be relinked. > > Did I miss something ? No, you're not. But can't we use the installed libraries for the commands used during=20 installation? Another option: build those tools only with RPATH to the build tree, then=20 relink them (and only them) during installation. This requires a full libra= ry=20 list during linking: e.g., "-lkio -lkdeui -lkdecore", not just "-lkio".=20 Doesn't CMake already do that? Maybe an even better option: set LD_LIBRARY_PATH when running uninstalled.= =20 That variable overrides RUNPATH and any distribution not using that (read:= =20 using RPATH only) should be shot in the head. DT_RUNPATH has been available= =20 for more than 5 years. =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart2395911.94y2rJkJI3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHJfwhM/XwBW70U1gRAj51AJ45SaY+tAqmvy/T5Dt1ujmlE8/sXACgtU/N 1ckqwVtAmmBW5VTUnictZMA= =eDaO -----END PGP SIGNATURE----- --nextPart2395911.94y2rJkJI3--