summaryrefslogtreecommitdiff
path: root/repo/devel/libunwind/libunwind.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-18 09:56:56 +0100
committerdavidovski <david@davidovski.xyz>2022-05-18 09:56:56 +0100
commit4cfc98e1be889f359613a54010b67e13c673e4ab (patch)
tree085c6f015955435d1138078984a897491b1b1e37 /repo/devel/libunwind/libunwind.xibuild
parentda500224f138f6d4800d248c24228987a0a149de (diff)
parentdccab9b94dcfc5e040647210ba22b9cc4bddc742 (diff)
Merge branch 'master' of git.cheetah.remote:xilinux/buildfiles
Diffstat (limited to 'repo/devel/libunwind/libunwind.xibuild')
-rw-r--r--repo/devel/libunwind/libunwind.xibuild48
1 files changed, 0 insertions, 48 deletions
diff --git a/repo/devel/libunwind/libunwind.xibuild b/repo/devel/libunwind/libunwind.xibuild
deleted file mode 100644
index 067a91d..0000000
--- a/repo/devel/libunwind/libunwind.xibuild
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-NAME="libunwind"
-DESC="LLVM version of libunwind library"
-
-MAKEDEPS="cmake "
-DEPS="musl "
-
-PKG_VER=13.0.0
-SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/libunwind-$PKG_VER.src.tar.xz"
-
-ADDITIONAL="
- https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/llvm-$PKG_VER.src.tar.xz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/libcxx-$PKG_VER.src.tar.xz
- libunwind-link-libssp.patch
- libcxx-musl.patch
-"
-
-prepare () {
- tar xvf libunwind-$PKG_VER.src.tar.xz
- tar xvf llvm-$PKG_VER.src.tar.xz
- tar xvf libcxx-$PKG_VER.src.tar.xz
- mv libunwind-$PKG_VER.src libunwind
- mv llvm-$PKG_VER.src llvm
- mv libcxx-$PKG_VER.src libcxx
-
- apply_patches
-}
-
-build () {
- cmake -B build -G Ninja -S libunwind \
- -DCMAKE_BUILD_TYPE=MinSizeRel \
- -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
- -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
- -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DLIBUNWIND_HAS_NODEFAULTLIBS_FLAG=OFF \
- -DLIBUNWIND_STANDALONE_BUILD=ON
- cmake --build build
-}
-
-package () {
- DESTDIR="$PKG_DEST" cmake --install build
- mkdir -p "$PKG_DEST"/usr/include/mach-o
- cp libunwind/include/*.h "$PKG_DEST"/usr/include/
- cp libunwind/include/mach-o/*.h "$PKG_DEST"/usr/include/mach-o/
-
-}