1
0
forked from ports/opt

lld: adopted port

This commit is contained in:
Tim Biermann 2023-08-27 17:31:27 +02:00
parent 29260d3222
commit 3f4386d764
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 17 additions and 17 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/VXUVBfCbdvUijQayX8fGC8D6+I6ZwZO0rRW2IUJlrzWx/kUH2jyJP9E8VkuBHbHkcgmMAwPdizeyWVhSbhsmgM=
SHA256 (Pkgfile) = 255d9f0b063dc08115669b6387d5cc82ebdfd25ba2179e53dc9c77e4482b878b
RWSE3ohX2g5d/T1ALewhKwZyBMMopBtJMDuD4bkq8Baw8jJsHgpZO3gRkVIG+SwViPmPZ6wQD1ZST27SC2VE0xQwXprl0u1ung8=
SHA256 (Pkgfile) = f263770cfe4c7ac23400b5f1a72be2c52615daae9ddda8467aae763fc1c41b49
SHA256 (.footprint) = fcae37e3e90397ba8151436eec3d664113b6d3081f71ef05ec2eb871f7381087
SHA256 (lld-16.0.6.src.tar.xz) = a127e334dd267f2e20d5a0c6b15aa9651f3fbbdfe3dc7d2573c617fad1155fcb
SHA256 (cmake-16.0.6.src.tar.xz) = 39d342a4161095d2f28fb1253e4585978ac50521117da666e2b1f6f28b62f514

View File

@ -1,29 +1,29 @@
# Description: Linker from the LLVM project
# URL: https://lld.llvm.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: llvm
name=lld
version=16.0.6
release=1
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/lld-$version.src.tar.xz
https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz
0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch)
https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz
0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch)
build() {
patch -d $name-$version.src -p2 -i $SRC/0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch
patch -d $name-$version.src -p2 -i $SRC/0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch
mv cmake-$version.src cmake
mv cmake-$version.src cmake
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_LINK_LLVM_DYLIB=ON \
-D LLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \
-Wno-dev
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_LINK_LLVM_DYLIB=ON \
-D LLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
cmake --build build
DESTDIR=$PKG cmake --install build
}