diff options
author | davidovski <david@davidovski.xyz> | 2022-05-01 21:21:05 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-01 21:21:05 +0000 |
commit | 606bc59d0f8f67815c6a717843835477d44db6b3 (patch) | |
tree | 687b3fe5bc844b90a3841e1ea543aa9f9934a93a /repo/devel/lld.xibuild | |
parent | 1084afc3c4d9c83e61620de60ba59a4393a33cb0 (diff) |
added ungoogled chromium
Diffstat (limited to 'repo/devel/lld.xibuild')
-rw-r--r-- | repo/devel/lld.xibuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/devel/lld.xibuild b/repo/devel/lld.xibuild new file mode 100644 index 0000000..c2dff7f --- /dev/null +++ b/repo/devel/lld.xibuild @@ -0,0 +1,29 @@ +#!/bin/sh + +NAME="lld" +DESC="The LLVM Linker" + +MAKEDEPS="cmake llvm-libunwind" +DEPS="musl llvm " + +PKG_VER=13.0.0 +SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/lld-$PKG_VER.src.tar.xz" + +build () { + cmake -B build \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_VERBOSE_MAKEFILE=OFF \ + -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \ + -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS -Wl,-z,stack-size=2097152" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_INSTALL_RPATH=ON \ + -DLLVM_INCLUDE_TESTS=ON \ + -DLLVM_EXTERNAL_LIT=/usr/bin/lit + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build + install -Dm 644 docs/ld.lld.1 $PKG_DEST/usr/share/man/man1/ +} |