summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2018-02-28 20:04:21 +0000
committerDimitry Andric <dimitry@andric.com>2018-02-28 20:04:21 +0000
commita73ed459bf1422f198d3c255bfd3be823a10e926 (patch)
treeb36463720be87d1949b01e194111157228189492 /lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py
parent07f0a52c7fcef1bdbf3b2c0847b6c40ec2402d91 (diff)
downloadbcm5719-llvm-a73ed459bf1422f198d3c255bfd3be823a10e926.tar.gz
bcm5719-llvm-a73ed459bf1422f198d3c255bfd3be823a10e926.zip
Fix llvm-config --system-libs output on FreeBSD and NetBSD
Summary: For various reasons, CMake's detection mechanism for `backtrace()` returns an absolute path `/usr/lib/libexecinfo.so` on FreeBSD and NetBSD. Since `tools/llvm-config/CMakeLists.txt` only checks if system libraries start with `-`, this causes `llvm-config --system-libs` to produce the following incorrect output: ``` -lrt -l/usr/lib/libexecinfo.so -ltinfo -lpthread -lz -lm ``` Fix it by removing the path and the `lib` prefix, to make it look like a regular short library name, suitable for appending to a `-l` link flag. This also fixes the `Bindings/Go/go.test` test case, since that always died with "unable to find library -l/usr/lib/libexecinfo.so". Reviewers: chandlerc, emaste, joerg, krytarowski Reviewed By: krytarowski Subscribers: hans, bdrewery, mgorny, hintonda, llvm-commits Differential Revision: https://reviews.llvm.org/D42702 llvm-svn: 326358
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud