FreeBSD Bugzilla – Attachment 177038 Details for
Bug 214549
[patch] devel/llvm39: enable shared libraries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Enable shared libraries
llvm39-shared.diff (text/plain), 2.65 KB, created by
Koop Mast
on 2016-11-15 22:17:46 UTC
(
hide
)
Description:
Enable shared libraries
Filename:
MIME Type:
Creator:
Koop Mast
Created:
2016-11-15 22:17:46 UTC
Size:
2.65 KB
patch
obsolete
>Index: devel/llvm39/Makefile >=================================================================== >--- devel/llvm39/Makefile (revision 426185) >+++ devel/llvm39/Makefile (working copy) >@@ -2,7 +2,7 @@ > > PORTNAME= llvm > DISTVERSION= 3.9.0 >-PORTREVISION= 3 >+PORTREVISION= 4 > CATEGORIES= devel lang > MASTER_SITES= http://llvm.org/${PRE_}releases/${LLVM_RELEASE}/${RCDIR} > DISTNAME= ${PORTNAME}-${DISTVERSION}.src >@@ -38,7 +38,7 @@ > SUB_LIST= LLVM_PREFIX="${LLVM_PREFIX}" LLVM_SUFFIX="${LLVM_SUFFIX}" > > CMAKE_INSTALL_PREFIX= ${LLVM_PREFIX} >-CMAKE_ARGS= >+CMAKE_ARGS= -DLLVM_BUILD_LLVM_DYLIB=ON > > OPTIONS_DEFINE= CLANG DOCS EXTRAS LIT LLD LLDB > OPTIONS_DEFINE_amd64= COMPILER_RT GOLD OPENMP >Index: devel/llvm39/files/patch-tools_llvm-shlib_CMakeLists.txt >=================================================================== >--- devel/llvm39/files/patch-tools_llvm-shlib_CMakeLists.txt (nonexistent) >+++ devel/llvm39/files/patch-tools_llvm-shlib_CMakeLists.txt (working copy) >@@ -0,0 +1,13 @@ >+Otherwise we end up with a 4k library without any symbols. >+ >+--- tools/llvm-shlib/CMakeLists.txt.orig 2016-05-26 06:35:35.000000000 +0200 >++++ tools/llvm-shlib/CMakeLists.txt 2016-11-15 17:07:29.937965000 +0100 >+@@ -39,7 +39,7 @@ >+ add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES}) >+ >+ list(REMOVE_DUPLICATES LIB_NAMES) >+-if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") # FIXME: It should be "GNU ld for elf" >++if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")) # FIXME: It should be "GNU ld for elf" >+ # GNU ld doesn't resolve symbols in the version script. >+ set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive) >+ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") > >Property changes on: devel/llvm39/files/patch-tools_llvm-shlib_CMakeLists.txt >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: devel/llvm39/pkg-plist >=================================================================== >--- devel/llvm39/pkg-plist (revision 426185) >+++ devel/llvm39/pkg-plist (working copy) >@@ -2180,6 +2180,9 @@ > llvm39/lib/cmake/llvm/LLVMProcessSources.cmake > llvm39/lib/cmake/llvm/TableGen.cmake > llvm39/lib/cmake/llvm/VersionFromVCS.cmake >+llvm39/lib/libLLVM-%%LLVM_RELEASE%%.so >+llvm39/lib/libLLVM-%%LLVM_MAJOR%%.so >+llvm39/lib/libLLVM.so > llvm39/lib/libLLVMAArch64AsmParser.a > llvm39/lib/libLLVMAArch64AsmPrinter.a > llvm39/lib/libLLVMAArch64CodeGen.a
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 214549
: 177038 |
177040
Working