Fix the CMake shared build.

The ELF backends now depend on lld::script::Sema, which is in libReaderWriter.
Link it explicitly.

llvm-svn: 232953
This commit is contained in:
Benjamin Kramer 2015-03-23 15:55:00 +00:00
parent 30b8cd331e
commit e13f47e8aa
8 changed files with 18 additions and 6 deletions

View File

@ -4,8 +4,9 @@ add_llvm_library(lldAArch64ELFTarget
AArch64RelocationHandler.cpp
AArch64RelocationPass.cpp
LINK_LIBS
lldCore
lldELF
lldReaderWriter
lldCore
LLVMObject
LLVMSupport
)

View File

@ -4,8 +4,9 @@ add_llvm_library(lldARMELFTarget
ARMRelocationHandler.cpp
ARMRelocationPass.cpp
LINK_LIBS
lldCore
lldELF
lldReaderWriter
lldCore
LLVMObject
LLVMSupport
)

View File

@ -3,6 +3,7 @@ add_llvm_library(lldELF
Reader.cpp
Writer.cpp
LINK_LIBS
lldReaderWriter
lldCore
lldYAML
LLVMSupport

View File

@ -3,8 +3,9 @@ add_llvm_library(lldHexagonELFTarget
HexagonRelocationHandler.cpp
HexagonTargetHandler.cpp
LINK_LIBS
lldCore
lldELF
lldReaderWriter
lldCore
LLVMObject
LLVMSupport
)

View File

@ -6,8 +6,9 @@ add_llvm_library(lldMipsELFTarget
MipsRelocationPass.cpp
MipsTargetHandler.cpp
LINK_LIBS
lldCore
lldELF
lldReaderWriter
lldCore
LLVMObject
LLVMSupport
)

View File

@ -3,8 +3,9 @@ add_llvm_library(lldX86ELFTarget
X86TargetHandler.cpp
X86RelocationHandler.cpp
LINK_LIBS
lldCore
lldELF
lldReaderWriter
lldCore
LLVMObject
LLVMSupport
)

View File

@ -4,8 +4,9 @@ add_llvm_library(lldX86_64ELFTarget
X86_64RelocationHandler.cpp
X86_64RelocationPass.cpp
LINK_LIBS
lldCore
lldELF
lldReaderWriter
lldCore
LLVMObject
LLVMSupport
)

View File

@ -3,4 +3,9 @@ add_llvm_library(lldExampleSubTarget
ExampleTargetHandler.cpp
LINK_LIBS
lldX86_64ELFTarget
lldELF
lldReaderWriter
lldCore
LLVMObject
LLVMSupport
)