[llvm-bugs] [Bug 26377] -DLLVM_LINK_LLVM_DYLIB:BOOL=ON prevents creation of libPolly.dylib

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 29 14:42:36 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26377

Jack Howarth <howarth.mailing.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jack Howarth <howarth.mailing.lists at gmail.com> ---
My mistake. In the fink project, we have been using the change...

--- polly-3.9.0.src.orig/lib/CMakeLists.txt     2015-09-21 09:00:19.000000000
-0400
+++ polly-3.9.0.src/lib/CMakeLists.txt  2015-09-21 09:54:19.000000000 -0400
@@ -322,6 +322,26 @@
   )
 endif()

+if (APPLE)
+# apparently, this is not wanted on linux
+target_link_libraries(Polly
+  LLVMAnalysis
+  LLVMBitReader
+  LLVMCore
+  LLVMInstCombine
+  LLVMMC
+  LLVMMCParser
+  LLVMObject
+  LLVMProfileData
+  LLVMSupport
+  LLVMScalarOpts
+  LLVMTarget
+  LLVMTransformUtils
+  LLVMVectorize
+  LLVMipo
+)
+endif()
+
 # Build a monolithic Polly.a and a thin module LLVMPolly.moduleext that links
to
 # that static library.
 if (MSVC)

to address symbol resolution issues when using -DBUILD_SHARED_LIBS:BOOL=ON

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160129/97581181/attachment.html>


More information about the llvm-bugs mailing list