]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: specify rpath on all executables linking to libshared
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Apr 2017 22:13:00 +0000 (18:13 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 01:47:27 +0000 (21:47 -0400)
commitb2fc5836b2a9030ef6b33e62bb27ac0ed414777b
treed7caf40a31b748829913ad5a37f9914bfda5b726
parentef0221bc954a6341bd172950d1e163d35d472f9e
meson: specify rpath on all executables linking to libshared

(i.e. pretty much all of them). libtools does this automatically for us.  It
would be great if meson did too. Otherwise, it would be nice to simply attach
the information about necessary rpath to the library object, and have it used
automatically for all users. Dunno, maybe there's already a way to do this.

I used '$ORIGIN' for stuff installed into libexecdir, since that's where
libshared ends up, and a full path for everything else. The advantage of
using $ORIGIN is that those binaries can be started from $DESTDIR, which can
sometimes be useful.
meson.build