mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
4a7c3c22a7
974f0bf8e684696be7796dbf3d48ff0a41f4ac26 depends: Mention RISC-V known compilation issue with gcc-7.3.x (Wladimir J. van der Laan) 0d1f38c45ff40f17b42074e3b58211e794a19edb depends: update zmq config.guess/config.sub for riscv support (fanquake) 409481c46555afb34a038dbc69a8285b83eb952e depends: latest config.sub (fanquake) d7005e9988ddae4d3507963b42c525257c34ddb0 depends: latest config.guess (fanquake) 359e2e352590e1e473da70e28a38d14a068a3103 depends: Add RISC-V support (Wladimir J. van der Laan) Pull request description: This adds support for riscv32 and riscv64 builds to the depends system. The change consists of documentation and build system changes. The most significant change is an update of `config.sub` and `config.guess` inside zeromq patch, as the current version does not recognize the `riscv*` host tuples (there's no new version of ZeroMQ yet with newer ones). Good thing: RISC-V 64-bit toolchain packages can be installed out of the box on Ubuntu 18.04+. I would also like to add RISC-V 64-bit executables to gitian, but this will not be possible until #12511 . Tree-SHA512: 358ed72ee9e4ae44e7d305c09a4ff5ce5460eeb7ed915eb25d39c8f43b61e7b347f51bf0ae5d83ddb4ce8876dea7703c926b3baa3cccb4932b3bc17160d801bb (cherry picked from commit 6c6a3001e51b1679af2f375f158d8c87bbb330bc) # Conflicts: # depends/Makefile
84 lines
3.0 KiB
Makefile
84 lines
3.0 KiB
Makefile
package=openssl
|
|
$(package)_version=1.0.1k
|
|
$(package)_download_path=https://www.openssl.org/source
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fcebe7a41c
|
|
$(package)_patches=0001-Add-OpenSSL-termios-fix-for-musl-libc.patch
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)"
|
|
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl
|
|
$(package)_config_opts+=no-camellia
|
|
$(package)_config_opts+=no-capieng
|
|
$(package)_config_opts+=no-cast
|
|
$(package)_config_opts+=no-comp
|
|
$(package)_config_opts+=no-dso
|
|
$(package)_config_opts+=no-dtls1
|
|
$(package)_config_opts+=no-ec_nistp_64_gcc_128
|
|
$(package)_config_opts+=no-gost
|
|
$(package)_config_opts+=no-gmp
|
|
$(package)_config_opts+=no-heartbeats
|
|
$(package)_config_opts+=no-idea
|
|
$(package)_config_opts+=no-jpake
|
|
$(package)_config_opts+=no-krb5
|
|
$(package)_config_opts+=no-libunbound
|
|
$(package)_config_opts+=no-md2
|
|
$(package)_config_opts+=no-mdc2
|
|
$(package)_config_opts+=no-rc4
|
|
$(package)_config_opts+=no-rc5
|
|
$(package)_config_opts+=no-rdrand
|
|
$(package)_config_opts+=no-rfc3779
|
|
$(package)_config_opts+=no-rsax
|
|
$(package)_config_opts+=no-sctp
|
|
$(package)_config_opts+=no-seed
|
|
$(package)_config_opts+=no-sha0
|
|
$(package)_config_opts+=no-shared
|
|
$(package)_config_opts+=no-ssl-trace
|
|
$(package)_config_opts+=no-ssl2
|
|
$(package)_config_opts+=no-ssl3
|
|
$(package)_config_opts+=no-static_engine
|
|
$(package)_config_opts+=no-store
|
|
$(package)_config_opts+=no-unit-test
|
|
$(package)_config_opts+=no-weak-ssl-ciphers
|
|
$(package)_config_opts+=no-whirlpool
|
|
$(package)_config_opts+=no-zlib
|
|
$(package)_config_opts+=no-zlib-dynamic
|
|
$(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
|
|
$(package)_config_opts_linux=-fPIC -Wa,--noexecstack
|
|
$(package)_config_opts_x86_64_linux=linux-x86_64
|
|
$(package)_config_opts_i686_linux=linux-generic32
|
|
$(package)_config_opts_arm_linux=linux-generic32
|
|
$(package)_config_opts_armv7l_linux=linux-generic32
|
|
$(package)_config_opts_aarch64_linux=linux-generic64
|
|
$(package)_config_opts_mipsel_linux=linux-generic32
|
|
$(package)_config_opts_mips_linux=linux-generic32
|
|
$(package)_config_opts_powerpc_linux=linux-generic32
|
|
$(package)_config_opts_riscv32_linux=linux-generic32
|
|
$(package)_config_opts_riscv64_linux=linux-generic64
|
|
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
|
|
$(package)_config_opts_x86_64_mingw32=mingw64
|
|
$(package)_config_opts_i686_mingw32=mingw
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/0001-Add-OpenSSL-termios-fix-for-musl-libc.patch && \
|
|
sed -i.old "/define DATE/d" util/mkbuildinf.pl && \
|
|
sed -i.old "s|engines apps test|engines|" Makefile.org
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
./Configure $($(package)_config_opts)
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE) -j1 build_libs libcrypto.pc libssl.pc openssl.pc
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) INSTALL_PREFIX=$($(package)_staging_dir) -j1 install_sw
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm -rf share bin etc
|
|
endef
|