summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorArkadiusz Hiler <arek@hiler.eu>2018-09-30 15:11:24 +0300
committerArkadiusz Hiler <arek@hiler.eu>2018-09-30 15:37:01 +0300
commit363dfeed1351375fc1d1f5ef542a02620ae22dd7 (patch)
tree8050b8e5534c40e4097c3af8402f285cb2074542 /meson.build
parent8598282170309732c98ac45ea8d8b5ea5aaa517c (diff)
downloadswaybg-363dfeed1351375fc1d1f5ef542a02620ae22dd7.tar.gz
swaybg-363dfeed1351375fc1d1f5ef542a02620ae22dd7.tar.bz2
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 '')
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 8704de6..095c548 100644
--- a/meson.build
+++ b/meson.build
@@ -14,5 +14,6 @@ executable(
wlroots,
],
link_with: [lib_sway_common, lib_sway_client],
+ install_rpath : rpathdir,
install: true
)