cmake: Add additional libraries to fix the darwin shared library build
commite0cc948a76e0ac2a459a94488c83161b506ddeb0
authorTobias Grosser <tobias@grosser.es>
Sun, 31 Jan 2016 20:25:46 +0000 (31 20:25 +0000)
committerTobias Grosser <tobias@grosser.es>
Sun, 31 Jan 2016 20:25:46 +0000 (31 20:25 +0000)
treec4daeb3e661ae551b24a7a9afd64da70a52493cc
parent46028c52fd2fea07eb4784f3093fde252748ee75
cmake: Add additional libraries to fix the darwin shared library build

darwin requires the additional linkages of...

LLVMBitReader
LLVMMCParser
LLVMObject
LLVMProfileData
LLVMTarget
LLVMVectorize

as the darwin requires all of the weak undefined symbols in a library to be
resolved when linking it against an executable (unless
-Wl,-undefined,dynamic_lookup is used to override the default behavior of
-Wl,-undefined,error).

Contributed-by: Jack Howarth
git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@259332 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CMakeLists.txt