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

Evangelos Foutras foutrelis at archlinux.org
Thu Apr 16 18:22:58 UTC 2015


    Date: Thursday, April 16, 2015 @ 20:22:57
  Author: foutrelis
Revision: 237246

upgpkg: llvm 3.6.0-5

Move remaining shared libs from llvm into llvm-libs; we're mainly
interested in LLVMgold.so, needed for 'clang -flto -fuse-ld=gold'.

Modified:
  llvm/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-04-16 18:21:48 UTC (rev 237245)
+++ PKGBUILD	2015-04-16 18:22:57 UTC (rev 237246)
@@ -12,7 +12,7 @@
 pkgname=('llvm' 'llvm-libs' 'llvm-ocaml' 'lldb' 'clang' 'clang-analyzer'
          'clang-tools-extra')
 pkgver=3.6.0
-pkgrel=4
+pkgrel=5
 _ocaml_ver=4.02.1
 arch=('i686' 'x86_64')
 url="http://llvm.org/"
@@ -124,9 +124,10 @@
   mv "$srcdir/clang" tools
   mv "$srcdir/lldb" tools
 
-  # The runtime library goes into llvm-libs
+  # The runtime libraries go into llvm-libs
   mv -f "$pkgdir/usr/lib/libLLVM-$pkgver.so" "$srcdir/"
   mv -f "$pkgdir/usr/lib/libLLVM-${pkgver%.*}.so" "$srcdir/"
+  mv -f "$pkgdir"/usr/lib/{LLVMgold,libLTO,BugpointPasses}.so "$srcdir/"
 
   # OCaml bindings go to a separate package
   rm -rf "$srcdir"/{ocaml,ocamldoc}
@@ -138,11 +139,6 @@
   # Get rid of example Hello transformation
   rm "$pkgdir"/usr/lib/*LLVMHello.*
 
-  # Symlink LLVMgold.so from /usr/lib/bfd-plugins
-  # https://bugs.archlinux.org/task/28479
-  install -d "$pkgdir/usr/lib/bfd-plugins"
-  ln -s ../LLVMgold.so "$pkgdir/usr/lib/bfd-plugins/LLVMgold.so"
-
   if [[ $CARCH == x86_64 ]]; then
     # Needed for multilib (https://bugs.archlinux.org/task/29951)
     # Header stubs are taken from Fedora
@@ -165,7 +161,7 @@
 }
 
 package_llvm-libs() {
-  pkgdesc="Low Level Virtual Machine (runtime library)"
+  pkgdesc="Low Level Virtual Machine (runtime libraries)"
   depends=('gcc-libs' 'zlib' 'libffi' 'libedit' 'ncurses')
 
   install -d "$pkgdir/usr/lib"
@@ -172,8 +168,14 @@
   cp -P \
     "$srcdir/libLLVM-$pkgver.so" \
     "$srcdir/libLLVM-${pkgver%.*}.so" \
+    "$srcdir"/{LLVMgold,libLTO,BugpointPasses}.so \
     "$pkgdir/usr/lib/"
 
+  # Symlink LLVMgold.so from /usr/lib/bfd-plugins
+  # https://bugs.archlinux.org/task/28479
+  install -d "$pkgdir/usr/lib/bfd-plugins"
+  ln -s ../LLVMgold.so "$pkgdir/usr/lib/bfd-plugins/LLVMgold.so"
+
   install -Dm644 "$srcdir/llvm-$pkgver.src/LICENSE.TXT" \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list