aboutsummaryrefslogtreecommitdiff
path: root/swaynag/meson.build
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-09-30 15:11:24 +0300
committerFurkan Sahin <furkan-dev@proton.me>2018-09-30 15:11:24 +0300
commit955c4426507a50cc9a662a612facb9fec1a1cb10 (patch)
tree63e09dad69399fe4470830b3103301a97ce0ab7f /swaynag/meson.build
parent256ea1ad902b251a02c70d001ecde9b2bbc596ca (diff)
Add support for installing binaries with DT_RPATH
It's better to use DT_RPATH dynamic section of the elf binary to store the paths of libraries to load instead of overwriting LD_LIBRARY_PATH for the whole environment, causing surprises. This solution is much more transparent and perfectly suitable for running contained installations of wayland/wlroots/sway. The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as it's a placebo security at best - we should trust the execution path that leads us to running sway, and it's way too late to care about those variables since we already started executing our compositor, thus we would be compromised anyway.
Diffstat (limited to 'swaynag/meson.build')
-rw-r--r--swaynag/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaynag/meson.build b/swaynag/meson.build
index 2ba3ed95..223a0bc7 100644
--- a/swaynag/meson.build
+++ b/swaynag/meson.build
@@ -19,5 +19,6 @@ executable(
wlroots,
],
link_with: [lib_sway_common, lib_sway_client],
+ install_rpath : rpathdir,
install: true
)