[arch-commits] Commit in llvm/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Apr 23 15:05:05 EDT 2012


    Date: Monday, April 23, 2012 @ 15:05:05
  Author: foutrelis
Revision: 157093

upgpkg: llvm 3.0-4

libffi 3.0.11 rebuild. Add -fno-tree-pre workaround for FS#29481.

Modified:
  llvm/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-04-23 16:33:36 UTC (rev 157092)
+++ PKGBUILD	2012-04-23 19:05:05 UTC (rev 157093)
@@ -11,7 +11,7 @@
 
 pkgname=('llvm' 'llvm-ocaml' 'clang' 'clang-analyzer')
 pkgver=3.0
-pkgrel=3
+pkgrel=4
 arch=('i686' 'x86_64')
 url="http://llvm.org/"
 license=('custom:University of Illinois/NCSA Open Source License')
@@ -34,6 +34,11 @@
 build() {
   cd "$srcdir/$pkgname-$pkgver.src"
 
+  # Build without -ftree-pre as a workaround for clang segfaulting on x86_64
+  # https://bugzilla.redhat.com/show_bug.cgi?id=791365
+  CFLAGS+=' -fno-tree-pre'
+  CXXFLAGS+=' -fno-tree-pre'
+
   # At the present, clang must reside inside the LLVM source code tree to build
   # See http://llvm.org/bugs/show_bug.cgi?id=4840
   rm -rf tools/clang



More information about the arch-commits mailing list