bitcoin/depends/packages/native_cctools.mk

38 lines
1.1 KiB
Makefile
Raw Normal View History

package=native_cctools
$(package)_version=2ef2e931cf641547eb8a68cfebde61003587c9fd
$(package)_download_path=https://github.com/tpoechtrager/cctools-port/archive
$(package)_file_name=$($(package)_version).tar.gz
$(package)_sha256_hash=6b73269efdf5c58a070e7357b66ee760501388549d6a12b423723f45888b074b
$(package)_build_subdir=cctools
2021-03-17 05:06:29 +01:00
$(package)_dependencies=native_libtapi
define $(package)_set_vars
2021-03-17 05:06:29 +01:00
$(package)_config_opts=--target=$(host)
$(package)_ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib
ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),)
2021-03-17 05:06:29 +01:00
$(package)_config_opts+=--enable-lto-support --with-llvm-config=$(build_prefix)/bin/llvm-config
endif
2021-03-17 05:06:29 +01:00
$(package)_cc=$(clang_prog)
$(package)_cxx=$(clangxx_prog)
endef
define $(package)_preprocess_cmds
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub cctools
endef
define $(package)_config_cmds
$($(package)_autoconf)
endef
define $(package)_build_cmds
$(MAKE)
endef
define $(package)_stage_cmds
2021-03-17 05:06:29 +01:00
$(MAKE) DESTDIR=$($(package)_staging_dir) install
endef
2021-03-17 05:06:29 +01:00
define $(package)_postprocess_cmds
rm -rf share
endef