From 9b60690b94ca766f8039a7a7a20dda5fecd176ab Mon Sep 17 00:00:00 2001 From: fanquake Date: Thu, 28 Jul 2022 14:24:30 +0100 Subject: 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. --- depends/packages/native_cctools.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'depends/packages/native_cctools.mk') diff --git a/depends/packages/native_cctools.mk b/depends/packages/native_cctools.mk index d169eb6723..221df533a4 100644 --- a/depends/packages/native_cctools.mk +++ b/depends/packages/native_cctools.mk @@ -16,9 +16,17 @@ define $(package)_set_vars $(package)_cxx=$(clangxx_prog) endef +ifneq ($(strip $(FORCE_USE_SYSTEM_CLANG)),) define $(package)_preprocess_cmds + mkdir -p $($(package)_staging_prefix_dir)/lib && \ + cp $(llvm_lib_dir)/libLTO.so $($(package)_staging_prefix_dir)/lib/ && \ cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub cctools endef +else +define $(package)_preprocess_cmds + cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub cctools +endef +endif define $(package)_config_cmds $($(package)_autoconf) -- cgit v1.2.3