aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-07-12 17:07:00 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-07-19 03:56:29 +0000
commitec6f46499f556567810dc2aa3b528fde9ea46300 (patch)
treedeee27d3e40febee587e791b294777a6ed044227
parentbd21836a20355415d01c1e8f460e0e1b6608fd8a (diff)
downloadaports-ec6f46499f556567810dc2aa3b528fde9ea46300.tar.gz
aports-ec6f46499f556567810dc2aa3b528fde9ea46300.tar.bz2
aports-ec6f46499f556567810dc2aa3b528fde9ea46300.tar.xz
main/llvm10: install LLVMgold.so and libLTO.so in the mainpkg
-rw-r--r--main/llvm10/APKBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/main/llvm10/APKBUILD b/main/llvm10/APKBUILD
index d5d1777ac8..a23a35c3ee 100644
--- a/main/llvm10/APKBUILD
+++ b/main/llvm10/APKBUILD
@@ -8,7 +8,7 @@ _pkgname=llvm
pkgver=10.0.0
_majorver=${pkgver%%.*}
pkgname=$_pkgname$_majorver
-pkgrel=2
+pkgrel=3
pkgdesc="Low Level Virtual Machine compiler system, version $_majorver"
arch="all"
url="https://llvm.org/"
@@ -201,10 +201,15 @@ dev() {
_mv "$pkgdir"/$_prefix/bin/llvm-config $_prefix/bin/
+ # Move libLTO and LLVMgold back
+ _mv "$subpkgdir"/$_prefix/lib/libLTO.so.* \
+ "$subpkgdir"/$_prefix/lib/LLVMgold* \
+ "$pkgdir"/$_prefix/lib
+
if [ "$_default_llvm" = yes ]; then
- ln -sf llvm$_majorver/lib/LLVMgold.so usr/lib/
- ln -sf llvm$_majorver/lib/libLTO.so usr/lib/
ln -sf llvm$_majorver usr/lib/cmake/llvm
+ ln -sf llvm$_majorver/lib/LLVMgold.so "$pkgdir"/usr/lib/
+ ln -sf llvm$_majorver/lib/libLTO.so "$pkgdir"/usr/lib/
fi
}