diff --git a/srcpkgs/llvm-git/patches/enable-shared-build-fix.patch b/srcpkgs/llvm-git/patches/enable-shared-build-fix.patch new file mode 100644 index 00000000000..084f7165d9f --- /dev/null +++ b/srcpkgs/llvm-git/patches/enable-shared-build-fix.patch @@ -0,0 +1,26 @@ +diff --git a/include/llvm/IR/LegacyPassNameParser.h b/include/llvm/IR/LegacyPassNameParser.h +index e2e4912..a07e3fd 100644 +--- include/llvm/IR/LegacyPassNameParser.h ++++ include/llvm/IR/LegacyPassNameParser.h +@@ -95,6 +95,8 @@ private: + } + }; + ++EXTERN_TEMPLATE_INSTANTIATION(class cl::parser); ++ + ///===----------------------------------------------------------------------===// + /// FilteredPassNameParser class - Make use of the pass registration + /// mechanism to automatically add a command line argument to opt for +diff --git a/lib/IR/Pass.cpp b/lib/IR/Pass.cpp +index 91d86ae..00ce223 100644 +--- lib/IR/Pass.cpp ++++ lib/IR/Pass.cpp +@@ -234,6 +234,8 @@ PassNameParser::~PassNameParser() { + // attempting to remove the registration listener is an error. + } + ++TEMPLATE_INSTANTIATION(class cl::parser); ++ + //===----------------------------------------------------------------------===// + // AnalysisUsage Class Implementation + // diff --git a/srcpkgs/llvm-git/template b/srcpkgs/llvm-git/template index baf62447cc0..886c9e7fbd8 100644 --- a/srcpkgs/llvm-git/template +++ b/srcpkgs/llvm-git/template @@ -1,9 +1,9 @@ # Template file for 'llvm-git' pkgname=llvm-git -version=20140906 -_llvmsha=4f240010fdea1fcbe7dac3c8e9ebad082e4036c2 -_clangsha=4deb99278de0ca315c7c177759fcfe7861046042 -_crtsha=2b2f4db4cd6a28a0259ba7298f8599c07fb4ec59 +version=20140930 +_llvmsha=95b3e168c5b96225b35f21f73db27996492ecace +_clangsha=e712375150e3a754f5ab0f0381339a040deee57c +_crtsha=d5c520db2bcb66700f2ef5f4e3d01ea0b7d9f8e9 wrksrc="llvm-${version}.src" revision=1 lib32disabled=yes