t2sde/package/develop/libunwind/libunwind.conf
2025-04-14 11:54:47 +00:00

24 lines
722 B
Plaintext

# --- T2-COPYRIGHT-BEGIN ---
# t2/package/*/libunwind/libunwind.conf
# Copyright (C) 2009 - 2025 The T2 SDE Project
# SPDX-License-Identifier: GPL-2.0
# --- T2-COPYRIGHT-END ---
cmake_mod() {
tar $taropt `match_source_file -p cmake` -C ..
mv -vf ../cmake-*src ../../cmake
}
hook_add preconf 5 cmake_mod
var_append cmakeopt " " "-DLIBCXX_USE_COMPILER_RT=YES"
if atstage cross; then
var_append GCC_WRAPPER_APPEND ' ' '-nodefaultlibs -lc -stdlib=libc++'
fi
[ "${libdir##*/lib}" ] && var_append cmakeopt " " "-DLLVM_LIBDIR_SUFFIX=${libdir##*/lib}"
#var_append cmakeopt " " "-DLLVM_BUILD_LLVM_DYLIB=ON"
var_append cmakeopt " " "-DBUILD_SHARED_LIBS=ON"
#var_append confopt ' ' '--disable-bindings' # TODO: config option