[Bug 36687] New: Defective out-of-tree builds with LLVM_LINK_LLVM_DYLIB=ON

Bug ID 36687
Summary Defective out-of-tree builds with LLVM_LINK_LLVM_DYLIB=ON
Product lldb
Version 6.0
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter evangelos@foutrelis.com
CC llvm-bugs@lists.llvm.org

(mostly copy pasting from bug 28127)

Either this issue has regressed in LLDB 6.0.0 or the LLVM package I pushed to
Arch Linux is buggy.

I'm doing an out-of-tree build of LLDB 6.0.0 with LLVM_LINK_LLVM_DYLIB=ON. The
resulting lldb-{server,test} binaries link to both libLLVMSupport.a and
libLLVM-6.0.so and result in the following runtime errors:

labath@google.com changed bug 36687

What | Removed | Added |

Comment # 2 on bug 36687 from labath@google.com

I have a tentative fix for this in [https://reviews.llvm.org/D44379](https://reviews.llvm.org/D44379). I'd
appreciate it if you can check if it fixes your problem.

BTW, the standalone and/or DYLIB builds are always going to end up lagging
behind the in-tree+non-DYLIB one until a person who tests them regularly
(ideally on a buildbot) shows up.