diff options
author | Oto Šťáva <oto.stava@nic.cz> | 2024-04-05 11:57:22 +0200 |
---|---|---|
committer | Oto Šťáva <oto.stava@nic.cz> | 2024-04-05 11:57:22 +0200 |
commit | 6ca12b77569611922be142edc05959ae78905e07 (patch) | |
tree | bf8d8f03695c950da591bbd28a23a8305f809fea /daemon | |
parent | Merge branch 'release-5.7.2' into 'master' (diff) | |
download | knot-resolver-6ca12b77569611922be142edc05959ae78905e07.tar.xz knot-resolver-6ca12b77569611922be142edc05959ae78905e07.zip |
daemon/meson.build: add install_rpath to kresd
This fixes the default use-case for developers when they put their
install prefix somewhere where the system `LD_LIBRARY_PATH` does not
point. Before this, `kresd` would fail to start after `ninja install`
because it would not be able to find the `libkres.so` library.
The original workaround to this was to use `meson configure
-Ddefault_library=static`, but firstly, we would like it to be working
with the default settings, and secondly, we would like to have it as
similar to what most users will encounter as possible.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/meson.build b/daemon/meson.build index 68a26466..8446b829 100644 --- a/daemon/meson.build +++ b/daemon/meson.build @@ -65,4 +65,5 @@ kresd = executable( export_dynamic: true, install: true, install_dir: get_option('sbindir'), + install_rpath: rpath, ) |