mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
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
|
|
$(package)_dependencies=native_libtapi
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=--target=$(host)
|
|
$(package)_ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib
|
|
ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),)
|
|
$(package)_config_opts+=--enable-lto-support --with-llvm-config=$(build_prefix)/bin/llvm-config
|
|
endif
|
|
$(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
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm -rf share
|
|
endef
|