Skip to content

Commit

Permalink
depends: fix openssl compilation for arm64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
div72 committed Sep 23, 2024
1 parent fdcb307 commit d7a8ac7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions depends/packages/openssl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ $(package)_file_name=OpenSSL_$(subst .,_,$($(package)_version)).tar.gz
$(package)_sha256_hash=dac036669576e83e8523afdb3971582f8b5d33993a2d6a5af87daa035f529b4f

define $(package)_set_vars
# OpenSSL relies on the asm keyword but that fails when it's not compiled with GNU extensions.
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc) -Dasm=__asm__"
# OpenSSL's Configure seem to ignore LDFLAGS so we pass it through the CC variable.
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc) $($(package)_ldflags)"
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl
$(package)_config_opts+=no-camellia
$(package)_config_opts+=no-capieng
Expand Down Expand Up @@ -34,7 +34,6 @@ $(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
Expand Down

0 comments on commit d7a8ac7

Please sign in to comment.