1. libcurl.mk now changed to build against static openssl from deps. 2. but, it won't work with openssl 1.1.1a, bcz of SSL: couldn't create a context: error:00000000:lib(0):func(0):reason(0) , so, in test i decided to upgrade openssl to 1.1.1b. 3. original openssl.mk was with many disabled features, i enable all of them, of course it's don't needed and we need to leave only SSL/TLS things enabled in OpenSSL build. 4. probably i broke something in Windows and MacOS build. This commit is only first approach to continue work.
46 lines
1.6 KiB
Makefile
46 lines
1.6 KiB
Makefile
package=openssl
|
|
$(package)_version=1.1.1b
|
|
$(package)_download_path=https://www.openssl.org/source
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=5c557b023230413dfb0756f3137a13e6d726838ccd1430888ad15bfb2b43ea4b
|
|
|
|
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-shared
|
|
$(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
|
|
$(package)_config_opts+=-DPURIFY
|
|
$(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_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_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
|
|
sed -i.old 's/built on: $date/built on: not available/' util/mkbuildinf.pl && \
|
|
sed -i.old "s|\"engines\", \"apps\", \"test\"|\"engines\"|" Configure
|
|
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) DESTDIR=$($(package)_staging_dir) -j1 install_sw
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm -rf share bin etc
|
|
endef
|