Add LLD package.
LLD is LLVM-based multi-platform linker. Together with cross-compiling clang it can be used to create binaries for other platforms.
This commit is contained in:
parent
13a86d8959
commit
d13180c3f3
@ -57,6 +57,15 @@ termux_step_post_extract_package () {
|
||||
|
||||
tar -xf $TERMUX_PKG_CACHEDIR/$CLANG_SRC_TAR -C tools
|
||||
mv tools/cfe-${TERMUX_PKG_VERSION}.src tools/clang
|
||||
|
||||
local LLD_SRC_TAR=lld-${TERMUX_PKG_VERSION}.src.tar.xz
|
||||
termux_download \
|
||||
http://llvm.org/releases/${TERMUX_PKG_VERSION}/$LLD_SRC_TAR \
|
||||
$TERMUX_PKG_CACHEDIR/$LLD_SRC_TAR \
|
||||
399a7920a5278d42c46a7bf7e4191820ec2301457a7d0d4fcc9a4ac05dd53897
|
||||
|
||||
tar -xf $TERMUX_PKG_CACHEDIR/$LLD_SRC_TAR -C tools
|
||||
mv tools/lld-${TERMUX_PKG_VERSION}.src tools/lld
|
||||
}
|
||||
|
||||
termux_step_host_build () {
|
||||
|
16
packages/libllvm/lld.subpackage.sh
Normal file
16
packages/libllvm/lld.subpackage.sh
Normal file
@ -0,0 +1,16 @@
|
||||
TERMUX_SUBPKG_INCLUDE="
|
||||
include/lld/
|
||||
lib/liblldConfig.a
|
||||
lib/liblldCore.a
|
||||
lib/liblldDriver.a
|
||||
lib/liblldReaderWriter.a
|
||||
lib/liblldMachO.a
|
||||
lib/liblldYAML.a
|
||||
bin/lld
|
||||
bin/lld-link
|
||||
bin/ld.lld
|
||||
lib/liblldCOFF.a
|
||||
lib/liblldELF.a
|
||||
"
|
||||
TERMUX_SUBPKG_DESCRIPTION="LD replace based on LLVM"
|
||||
TERMUX_SUBPKG_DEPENDS="libllvm"
|
Loading…
Reference in New Issue
Block a user