[llvm-branch-commits] [polly] r259372 - Merging r259332:

Hans Wennborg via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 1 09:14:09 PST 2016


Author: hans
Date: Mon Feb  1 11:14:09 2016
New Revision: 259372

URL: http://llvm.org/viewvc/llvm-project?rev=259372&view=rev
Log:
Merging r259332:
------------------------------------------------------------------------
r259332 | grosser | 2016-01-31 12:25:46 -0800 (Sun, 31 Jan 2016) | 17 lines

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
------------------------------------------------------------------------

Modified:
    polly/branches/release_38/   (props changed)
    polly/branches/release_38/lib/CMakeLists.txt

Propchange: polly/branches/release_38/
------------------------------------------------------------------------------
    svn:mergeinfo = /polly/trunk:259332

Modified: polly/branches/release_38/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/branches/release_38/lib/CMakeLists.txt?rev=259372&r1=259371&r2=259372&view=diff
==============================================================================
--- polly/branches/release_38/lib/CMakeLists.txt (original)
+++ polly/branches/release_38/lib/CMakeLists.txt Mon Feb  1 11:14:09 2016
@@ -66,6 +66,13 @@ if (BUILD_SHARED_LIBS)
     LLVMAnalysis
     LLVMipo
     LLVMMC
+# The libraries below are required for darwin: http://PR26392
+    LLVMBitReader
+    LLVMMCParser
+    LLVMObject
+    LLVMProfileData
+    LLVMTarget
+    LLVMVectorize
   )
   link_directories(
     ${LLVM_LIBRARY_DIR}




More information about the llvm-branch-commits mailing list