diff options
author | Arkadiusz Hiler <arek@hiler.eu> | 2018-09-30 15:11:24 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arek@hiler.eu> | 2018-09-30 15:37:01 +0300 |
commit | eed0bc3ebd15bf94a28ca019ab656a3a0bc0d258 (patch) | |
tree | 63e09dad69399fe4470830b3103301a97ce0ab7f /swaymsg/meson.build | |
parent | f1dbdce0b2cfb6a71f972dd58180337c8ad27096 (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 'swaymsg/meson.build')
-rw-r--r-- | swaymsg/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swaymsg/meson.build b/swaymsg/meson.build index 8638b838..7318349d 100644 --- a/swaymsg/meson.build +++ b/swaymsg/meson.build @@ -4,5 +4,6 @@ executable( include_directories: [sway_inc], dependencies: [jsonc, wlroots], link_with: [lib_sway_common], + install_rpath : rpathdir, install: true ) |