aboutsummaryrefslogtreecommitdiffstats
path: root/community/lld/APKBUILD
diff options
context:
space:
mode:
authorxentec <xentec@aix0.eu>2017-10-23 18:30:12 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-11-14 18:42:45 +0100
commite62454f8396883a4148a6d9072f5b0e4e986d84d (patch)
treeb4c09c10fa1b0ea22d312a5e0dbec81ba1ac8023 /community/lld/APKBUILD
parentd890bf664455f53f2560b6207409cfa867cf3b40 (diff)
downloadaports-e62454f8396883a4148a6d9072f5b0e4e986d84d.tar.bz2
aports-e62454f8396883a4148a6d9072f5b0e4e986d84d.tar.xz
community/lld: upgrade to 5.0.0
I'd like to enable LLVM_LINK_LLVM_DYLIB for at least lld, but bugs like https://bugs.llvm.org/show_bug.cgi?id=27685 continue to surface somehow.
Diffstat (limited to 'community/lld/APKBUILD')
-rw-r--r--community/lld/APKBUILD23
1 files changed, 12 insertions, 11 deletions
diff --git a/community/lld/APKBUILD b/community/lld/APKBUILD
index 52ed78ae24..b30bde9031 100644
--- a/community/lld/APKBUILD
+++ b/community/lld/APKBUILD
@@ -1,21 +1,23 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lld
-pkgver=4.0.0
+pkgver=5.0.0
pkgrel=0
-_vermajor=${pkgver%%.*}
+_llvmver=${pkgver%%.*}
pkgdesc="The LLVM Linker"
url="http://llvm.org"
arch="all"
license="UOI-NCSA"
makedepends="
cmake
- llvm-dev>=$_vermajor
- llvm-static>=$_vermajor
+ libedit-dev
+ llvm-dev>=$_llvmver
+ llvm-static>=$_llvmver
+ llvm-test-utils=>$_llvmver
zlib-dev"
+checkdepends="gtest gtest-dev"
subpackages="$pkgname-dev"
-source="http://llvm.org/releases/$pkgver/$pkgname-$pkgver.src.tar.xz
- cmake-fix-pthread-handling-for-out-of-tree-builds.patch"
+source="https://llvm.org/releases/$pkgver/$pkgname-$pkgver.src.tar.xz"
builddir="$srcdir/$pkgname-$pkgver.src"
build() {
@@ -29,14 +31,14 @@ build() {
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
- -DLLVM_LINK_LLVM_DYLIB=ON
+ -DLLVM_INCLUDE_TESTS=ON
make
}
check() {
- cd "$builddir"
+ cd "$builddir/build"
- ./build/bin/ld.lld --version
+ make check-lld
}
package() {
@@ -45,5 +47,4 @@ package() {
make install DESTDIR="$pkgdir"
}
-sha512sums="66b2c9cc57f5e94ad7e7da1b1bcc08cbbaee1b55c6efa64b2424b9d8776c70b842c2a31c188a99b447be6a8621ad1b1e70573bbfcf5d6b1aa986b03b3b3350f3 lld-4.0.0.src.tar.xz
-2aa44973dd86aaddbd5b21789bb5e2a611d00558c41ebd078c2b7d1a3eb5c303db69084f50517b14e77674c46148ecae6bde1b037d8ba5269a342fba84116a9b cmake-fix-pthread-handling-for-out-of-tree-builds.patch"
+sha512sums="984606a8c8aa753805d30602ce851a70d5427ee0ec098e3fcb2751e58d36c601f59f17f5c9ab90a430bc670f689c3b86b6ecbeccb6ff187f108f6e2000621eb7 lld-5.0.0.src.tar.xz"