mirror of
https://github.com/swaywm/sway.git
synced 2024-11-18 22:19:14 +00:00
eed0bc3ebd
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.
25 lines
363 B
Meson
25 lines
363 B
Meson
executable(
|
|
'swaynag', [
|
|
'config.c',
|
|
'main.c',
|
|
'render.c',
|
|
'swaynag.c',
|
|
'types.c',
|
|
],
|
|
include_directories: [sway_inc],
|
|
dependencies: [
|
|
cairo,
|
|
client_protos,
|
|
gdk_pixbuf,
|
|
math,
|
|
pango,
|
|
pangocairo,
|
|
wayland_client,
|
|
wayland_cursor,
|
|
wlroots,
|
|
],
|
|
link_with: [lib_sway_common, lib_sway_client],
|
|
install_rpath : rpathdir,
|
|
install: true
|
|
)
|