diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-09-27 17:04:45 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-09-28 12:58:09 +0200 |
commit | 2887d6553ff6948517e309819d2a0d8425842b19 (patch) | |
tree | b55a8446dab58d68c4b25a6619a77017884aef99 /src/buildtool/execution_api/common/create_execution_api.hpp | |
parent | 031d56a2d4ef7ef568be6ecda9a0426dae2ea967 (diff) | |
download | justbuild-2887d6553ff6948517e309819d2a0d8425842b19.tar.gz |
["CC/pkgconfig", "system_library"] Add -rpath
When a shared library is picked up from the host system via pkg-config
that is located at a non-standard location, binaries linked against
this library by a standard linker either need LD_LIBRARY_PATH set
appropriately, or -rpath set at link time. However, not all custom
installations set -rpath in the link flags in their pkg-config file.
Therefore, in order to get working binaries (and not have to set
custom paths in tests), add a -rpath for every -L option found in
the ldflags provided by pkg-config.
Diffstat (limited to 'src/buildtool/execution_api/common/create_execution_api.hpp')
0 files changed, 0 insertions, 0 deletions