diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2017-12-18 20:58:29 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-07 01:56:05 +0800 |
commit | 9ec950c4ae5281336d4f7804dcf52943860d5d32 (patch) | |
tree | 5fac57355939f76f0f89b705902c0a88d052abee /mesonbuild/compilers/c.py | |
parent | 7b4bcdf21e80b1040e88293c0020386994757bc2 (diff) | |
download | meson-9ec950c4ae5281336d4f7804dcf52943860d5d32.zip meson-9ec950c4ae5281336d4f7804dcf52943860d5d32.tar.gz meson-9ec950c4ae5281336d4f7804dcf52943860d5d32.tar.bz2 |
gtkdochelper: Set LD_LIBRARY_PATH from -Wl,-rpath arguments
gnome.gtkdoc uses -Wl,-rpath to ensure the scanner executable built by
gtkdoc-scangobj will load shared libraries from the correct directories.
However, FreeBSD configures its linker to use --enable-new-dtags by
default, which converts RPATH to RUNPATH. If users have LD_LIBRARY_PATH
environment variable set, RUNPATH will be overrided by LD_LIBRARY_PATH
and libraries will be loaded from wrong directories, causing undefined
symbol error when running the executable.
In order to solve the problem, we have to prepend directories specified
with -Wl,-rpath to LD_LIBRARY_PATH to avoid relying on the deprecated
RPATH attribute.
Diffstat (limited to 'mesonbuild/compilers/c.py')
0 files changed, 0 insertions, 0 deletions