ports/opt (3.6): [notify] lld: restrict targets to match llvm, else lld fails to compile

crux at crux.nu crux at crux.nu
Mon Aug 30 13:49:17 UTC 2021


commit c5d5199ddd50d9a5986f78f50126b04e796ccab8
Author: Danny Rawlins <contact at romster.me>
Date:   Mon Aug 30 20:59:12 2021 +1000

    [notify] lld: restrict targets to match llvm, else lld fails to compile

diff --git a/lld/.signature b/lld/.signature
index 3e5fb361f..48c6c6631 100644
--- a/lld/.signature
+++ b/lld/.signature
@@ -1,6 +1,6 @@
 untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/UJQzUtTaKYP7k4s/q7H+9QojYtgdI5jwjDXaB5M3xLTvRdRXrpkzLFTWds1tnm4JuP/onpOFhV5kX8pT74FrwI=
-SHA256 (Pkgfile) = 61a012fc08d49566d58e858ee1468347c1249a9922e23da21a07b4a27728adeb
+RWSE3ohX2g5d/eggQV3spcM8B6jowtRr/McYBnExrINzEZeptLaN8cpqK9CnA5ASCFWbiVHTdnKFGnIvoI3lnCbQF+/0JaYpCQg=
+SHA256 (Pkgfile) = 2ad19cdc45c1845458cb0750e7c1694697c1e3494929795e78cf21d9fa0ef202
 SHA256 (.footprint) = 1dd46daad9ea963716484a00386b3a884374561b25859f2a44c120e675f9de2a
 SHA256 (lld-12.0.1.src.tar.xz) = 690b3f6a76310e13a783a142f87500ade9cafe003e088b678364487ed873e361
 SHA256 (0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch) = 3b18edef05d3a3fc0030b7a7674e455574dfbdecf26f23c6af5bd30e987b0f55
diff --git a/lld/Pkgfile b/lld/Pkgfile
index b7fc6fa82..15b4de7d3 100644
--- a/lld/Pkgfile
+++ b/lld/Pkgfile
@@ -5,7 +5,7 @@
 
 name=lld
 version=12.0.1
-release=1
+release=2
 source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/$name-$version.src.tar.xz
 	0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch)
 
@@ -15,6 +15,9 @@ build() {
 	cmake -S $name-$version.src -B build -G Ninja \
 		-D CMAKE_INSTALL_PREFIX=/usr \
 		-D CMAKE_BUILD_TYPE=Release \
+		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
+		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
+		-D LLVM_TARGETS_TO_BUILD='X86;AMDGPU;BPF;NVPTX' \
 		-D LLVM_LINK_LLVM_DYLIB=ON \
 		-D LLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \
 		-D LLVM_MAIN_SRC_DIR=/usr/lib/llvm/src \


More information about the CRUX mailing list