]> git.ipfire.org Git - thirdparty/libvirt.git/commit
meson: Improve RPATH handling
authorAndrea Bolognani <abologna@redhat.com>
Wed, 19 Aug 2020 09:15:35 +0000 (11:15 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 24 Aug 2020 10:58:51 +0000 (12:58 +0200)
commit69980ab798e240923ef12f86a92665b6c9ff7292
tree9d31424df3a5d19cb06ae7acc02895b19fe0ce57
parent94cf1c433da5339c35fb3fbf39530ba74ed82dd1
meson: Improve RPATH handling

Right now we're unconditionally adding RPATH information to the
installed binaries and libraries, but that's not always desired.

autotools seem to be smart enough to only include that information
when targeting a non-standard prefix, so most distro packages
don't actually contain it; moreover, both Debian and Fedora have
wiki pages encouraging packagers to avoid setting RPATH:

  https://wiki.debian.org/RpathIssue
  https://fedoraproject.org/wiki/RPath_Packaging_Draft

Implement RPATH logic that Does The Right Thing™ in the most
common cases, while still offering users the ability to override
the default behavior if they have specific needs.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build
meson_options.txt
src/meson.build
tools/meson.build