Skip to content

Commit 76809a4

Browse files
committed
depends: fix openssl compilation for arm64-darwin
1 parent d3aa32e commit 76809a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

depends/packages/openssl.mk

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ $(package)_file_name=OpenSSL_$(subst .,_,$($(package)_version)).tar.gz
55
$(package)_sha256_hash=dac036669576e83e8523afdb3971582f8b5d33993a2d6a5af87daa035f529b4f
66

77
define $(package)_set_vars
8-
# OpenSSL relies on the asm keyword but that fails when it's not compiled with GNU extensions.
9-
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc) -Dasm=__asm__"
8+
# OpenSSL's Configure seem to ignore LDFLAGS so we pass it through the CC variable.
9+
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc) $($(package)_ldflags)"
1010
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl
1111
$(package)_config_opts+=no-camellia
1212
$(package)_config_opts+=no-capieng
@@ -34,7 +34,6 @@ $(package)_config_opts+=no-weak-ssl-ciphers
3434
$(package)_config_opts+=no-whirlpool
3535
$(package)_config_opts+=no-zlib
3636
$(package)_config_opts+=no-zlib-dynamic
37-
$(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
3837
$(package)_config_opts_linux=-fPIC -Wa,--noexecstack
3938
$(package)_config_opts_x86_64_linux=linux-x86_64
4039
$(package)_config_opts_i686_linux=linux-generic32

0 commit comments

Comments
 (0)