[all-commits] [llvm/llvm-project] 0c5bcd: [lli] Fix -DBUILD_SHARED_LIBS=on build

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Oct 29 22:41:42 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c5bcd1b59828cd09c1a105e077bd6e8aff9ac51
      https://github.com/llvm/llvm-project/commit/0c5bcd1b59828cd09c1a105e077bd6e8aff9ac51
  Author: Fangrui Song <maskray at google.com>
  Date:   2019-10-29 (Tue, 29 Oct 2019)

  Changed paths:
    M llvm/tools/lli/CMakeLists.txt

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list