[lli] Fix -DBUILD_SHARED_LIBS=on build
authorFangrui Song <maskray@google.com>
Wed, 30 Oct 2019 05:37:28 +0000 (22:37 -0700)
committerFangrui Song <maskray@google.com>
Wed, 30 Oct 2019 05:41:35 +0000 (22:41 -0700)
commit0c5bcd1b59828cd09c1a105e077bd6e8aff9ac51
tree85f0c280f5abc70d39fcf20d710f8c8f51e0a87f
parent8d24d72f7f8b7a111f96510fc6d62b05bfb7dbec
[lli] Fix -DBUILD_SHARED_LIBS=on build

This fixes:

  ld.lld: error: undefined symbol: vtable for llvm::orc::rpc::ResponseAbandoned
  >>> referenced by lli.cpp

In -DBUILD_SHARED_LIBS=on builds, all directly referenced references must
be linked to appease -Wl,-z,defs.
llvm/tools/lli/CMakeLists.txt