mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
04d1671b9c
* Fixes from Bitcoin #12474 This commit fixes building of boost and openssl on armv7l as described in Bitcoin issue #12474 * Prevent compiler from emitting illegal instructions to armv7l CPUs * Limit dwsize for armv7l * Remove superfluous cppflags argument
52 lines
2.1 KiB
Makefile
52 lines
2.1 KiB
Makefile
package=chia_bls
|
|
$(package)_version=v20181101
|
|
# It's actually from https://github.com/Chia-Network/bls-signatures, but we have so many patches atm that it's forked
|
|
$(package)_download_path=https://github.com/codablock/bls-signatures/archive
|
|
$(package)_file_name=$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=b3ec74a77a7b6795f84b05e051a0824ef8d9e05b04b2993f01040f35689aa87c
|
|
$(package)_dependencies=gmp
|
|
#$(package)_patches=...TODO (when we switch back to https://github.com/Chia-Network/bls-signatures)
|
|
|
|
#define $(package)_preprocess_cmds
|
|
# for i in $($(package)_patches); do patch -N -p1 < $($(package)_patch_dir)/$$$$i; done
|
|
#endef
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=-DCMAKE_INSTALL_PREFIX=$($(package)_staging_dir)/$(host_prefix)
|
|
$(package)_config_opts+= -DCMAKE_PREFIX_PATH=$(host_prefix)
|
|
$(package)_config_opts+= -DSTLIB=ON -DSHLIB=OFF -DSTBIN=ON
|
|
$(package)_config_opts_linux=-DOPSYS=LINUX -DCMAKE_SYSTEM_NAME=Linux
|
|
$(package)_config_opts_darwin=-DOPSYS=MACOSX -DCMAKE_SYSTEM_NAME=Darwin
|
|
$(package)_config_opts_mingw32=-DOPSYS=WINDOWS -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SHARED_LIBRARY_LINK_C_FLAGS="" -DCMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS=""
|
|
$(package)_config_opts_i686+= -DWSIZE=32
|
|
$(package)_config_opts_x86_64+= -DWSIZE=64
|
|
$(package)_config_opts_arm+= -DWSIZE=32
|
|
$(package)_config_opts_armv7l+= -DWSIZE=32
|
|
$(package)_config_opts_debug=-DDEBUG=ON -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
ifneq ($(darwin_native_toolchain),)
|
|
$(package)_config_opts_darwin+= -DCMAKE_AR="$(host_prefix)/native/bin/$($(package)_ar)"
|
|
$(package)_config_opts_darwin+= -DCMAKE_RANLIB="$(host_prefix)/native/bin/$($(package)_ranlib)"
|
|
endif
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
export CC="$($(package)_cc)" && \
|
|
export CXX="$($(package)_cxx)" && \
|
|
export CFLAGS="$($(package)_cflags) $($(package)_cppflags)" && \
|
|
export CXXFLAGS="$($(package)_cxxflags) $($(package)_cppflags)" && \
|
|
export LDFLAGS="$($(package)_ldflags)" && \
|
|
mkdir -p build && cd build && \
|
|
cmake ../ $($(package)_config_opts)
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
cd build && \
|
|
$(MAKE) $($(package)_build_opts)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
cd build && \
|
|
$(MAKE) install
|
|
endef
|