diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-01 00:52:43 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-01 00:55:13 +0200 |
commit | 048a74e6b48c0f80e7ed01c9b009e5af2939ee09 (patch) | |
tree | 819f6153b029d4e1acf954fdbcc25a5365041e5f /main/llvm5 | |
parent | 05748c9fad7f8dd229bc4f95e865605a6f63bb32 (diff) | |
download | aports-048a74e6b48c0f80e7ed01c9b009e5af2939ee09.tar.bz2 aports-048a74e6b48c0f80e7ed01c9b009e5af2939ee09.tar.xz |
main/llvm5: link {LLVMgold,libLTO}.so to /usr/lib for default LLVM
...so linker can find them.
Diffstat (limited to 'main/llvm5')
-rw-r--r-- | main/llvm5/APKBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/llvm5/APKBUILD b/main/llvm5/APKBUILD index 64c2e6ca0a..784ec5f8ac 100644 --- a/main/llvm5/APKBUILD +++ b/main/llvm5/APKBUILD @@ -6,7 +6,7 @@ _pkgname=llvm pkgver=5.0.1 _majorver=${pkgver%%.*} pkgname=$_pkgname$_majorver -pkgrel=0 +pkgrel=1 pkgdesc="Low Level Virtual Machine compiler system, version $_majorver" arch="all" url="http://llvm.org/" @@ -212,6 +212,11 @@ dev() { _mv "$pkgdir"/$_prefix/include $_prefix/ _mv "$pkgdir"/$_prefix/bin/llvm-config $_prefix/bin/ + + if [ "$_default_llvm" = yes ]; then + ln -sf llvm$_majorver/lib/LLVMgold.so usr/lib/ + ln -sf llvm$_majorver/lib/libLTO.so usr/lib/ + fi } _test_utils() { |