cctools: fixup building with LTO

Use lto.h from clang+llvm not libtapi. The later is older,
and comes bundled with the libtapi repo.

Copy libLTO.so when building with FORCE_USE_SYSTEM_CLANG.
This commit is contained in:
fanquake
2022-07-28 14:24:30 +01:00
parent 1abbae65eb
commit 9b60690b94
4 changed files with 15 additions and 3 deletions

View File

@@ -13,7 +13,5 @@ define $(package)_build_cmds
endef
define $(package)_stage_cmds
./install.sh && \
mkdir -p $($(package)_staging_prefix_dir)/include/llvm-c && \
cp src/llvm/include/llvm-c/lto.h $($(package)_staging_prefix_dir)/include/llvm-c
./install.sh
endef