From 6a3f545b44cea46321e025d9ab773786af86cb51 Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Fri, 23 Jan 2015 18:52:44 +0000 Subject: Fix the ELF shared library build targets lldELF is used by each ELF backend. lldELF's ELFLinkingContext also held a reference to each backend, creating a link-time cycle. This patch moves the backend references to lldDriver. Differential Revision: http://reviews.llvm.org/D7119 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@226922 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ReaderWriter/MachO/CMakeLists.txt | 4 +++- lib/ReaderWriter/MachO/Makefile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/ReaderWriter/MachO') diff --git a/lib/ReaderWriter/MachO/CMakeLists.txt b/lib/ReaderWriter/MachO/CMakeLists.txt index 95e95fff..30605e74 100644 --- a/lib/ReaderWriter/MachO/CMakeLists.txt +++ b/lib/ReaderWriter/MachO/CMakeLists.txt @@ -16,8 +16,10 @@ add_llvm_library(lldMachO StubsPass.cpp WriterMachO.cpp LINK_LIBS - lldReaderWriter + lldCore lldPasses + lldYAML + LLVMObject LLVMSupport ) diff --git a/lib/ReaderWriter/MachO/Makefile b/lib/ReaderWriter/MachO/Makefile index 619b9eac..1acd578b 100644 --- a/lib/ReaderWriter/MachO/Makefile +++ b/lib/ReaderWriter/MachO/Makefile @@ -9,6 +9,6 @@ LLD_LEVEL := ../../.. LIBRARYNAME := lldMachO -USEDLIBS = lldReaderWriter.a lldCore.a +USEDLIBS = lldCore.a include $(LLD_LEVEL)/Makefile -- cgit v1.2.3