aboutsummaryrefslogtreecommitdiffstats
path: root/meson_options.txt
diff options
context:
space:
mode:
authorLibravatar Arkadiusz Hiler <arek@hiler.eu>2018-09-30 15:11:24 +0300
committerLibravatar Arkadiusz Hiler <arek@hiler.eu>2018-09-30 15:37:01 +0300
commiteed0bc3ebd15bf94a28ca019ab656a3a0bc0d258 (patch)
tree63e09dad69399fe4470830b3103301a97ce0ab7f /meson_options.txt
parentMerge pull request #2726 from RyanDwyer/overhaul-gaps (diff)
downloadsway-eed0bc3ebd15bf94a28ca019ab656a3a0bc0d258.tar.gz
sway-eed0bc3ebd15bf94a28ca019ab656a3a0bc0d258.tar.zst
sway-eed0bc3ebd15bf94a28ca019ab656a3a0bc0d258.zip
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 'meson_options.txt')
-rw-r--r--meson_options.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 50d646fd..2db852fc 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,5 +1,6 @@
1option('sway-version', type : 'string', description: 'The version string reported in `sway --version`.') 1option('sway-version', type : 'string', description: 'The version string reported in `sway --version`.')
2option('ld-library-path', type: 'string', value: '', description: 'The LD_LIBRARY_PATH environment variable.') 2option('use_rpath', type: 'boolean', value: false, description: 'install binaries with rpath set')
3option('custom_rpath', type: 'string', value: '', description: 'override rpath with a custom one')
3option('default-wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.') 4option('default-wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.')
4option('zsh-completions', type: 'boolean', value: true, description: 'Install zsh shell completions.') 5option('zsh-completions', type: 'boolean', value: true, description: 'Install zsh shell completions.')
5option('bash-completions', type: 'boolean', value: true, description: 'Install bash shell completions.') 6option('bash-completions', type: 'boolean', value: true, description: 'Install bash shell completions.')