bitcoin/depends/packages/native_cctools.mk

39 lines
1.1 KiB
Makefile
Raw Normal View History

package=native_cctools
$(package)_version=55562e4073dea0fbfd0b20e0bf69ffe6390c7f97
$(package)_download_path=https://github.com/tpoechtrager/cctools-port/archive
$(package)_file_name=$($(package)_version).tar.gz
$(package)_sha256_hash=e51995a843533a3dac155dd0c71362dd471597a2d23f13dff194c6285362f875
$(package)_build_subdir=cctools
$(package)_patches=ld64_disable_threading.patch
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
patch -p1 < $($(package)_patch_dir)/ld64_disable_threading.patch
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