[all-commits] [llvm/llvm-project] 903444: [lld-macho] Fix BUILD_SHARED_LIBS build

Alexander Richardson via All-commits all-commits at lists.llvm.org
Thu Jun 3 12:00:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90344499ae76dffa56363e2f167c2c34a76cbfaf
      https://github.com/llvm/llvm-project/commit/90344499ae76dffa56363e2f167c2c34a76cbfaf
  Author: Alex Richardson <Alexander.Richardson at cl.cam.ac.uk>
  Date:   2021-06-03 (Thu, 03 Jun 2021)

  Changed paths:
    M lld/MachO/CMakeLists.txt
    M lld/tools/lld/CMakeLists.txt

  Log Message:
  -----------
  [lld-macho] Fix BUILD_SHARED_LIBS build

ca6751043d8899b12baeb48621e61fb352cfee09 added a dependency on XAR (at
least for the shared libs build), so without this change we get the
following linker error:

Undefined symbols for architecture x86_64:
  "_xar_close", referenced from:
      lld::macho::BitcodeBundleSection::finalize() in SyntheticSections.cpp.o

Reviewed By: #lld-macho, int3, thakis

Differential Revision: https://reviews.llvm.org/D100999




More information about the All-commits mailing list