# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/libunwind/libunwind.conf # Copyright (C) 2009 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-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 extraconfopt ' ' '--disable-bindings' # TODO: config option