Skip to content

Commit

Permalink
Fix OpenSSL build
Browse files Browse the repository at this point in the history
- Build fewer features. We only need pkcs7 and hash functions
- Make sure library is found by installing into $PREFIX/lib, not
  $PREFIX/lib64 or anything else

Close #80
  • Loading branch information
hillu committed Feb 9, 2025
1 parent 8d07a32 commit 1a7ff2d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 3rdparty.mk
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,18 @@ _3rdparty/build/$1/openssl-$(openssl_VERSION)/.build-stamp: _3rdparty/src/openss
@mkdir -p $$(@D)
cd $$(@D) && $$(abspath $$(<D))/config \
no-afalgeng \
no-apps \
no-async \
no-capieng \
no-dso \
no-engine \
no-posix-io \
no-shared \
no-sock \
no-ssl \
no-tls \
no-threads \
no-winstore \
$(or $(if $(findstring i386-linux-musl,$1),linux-x86),\
$(if $(findstring x86_64-linux-musl,$1),linux-x86_64),\
$(if $(findstring aarch64-linux-musl,$1),linux-aarch64),\
Expand All @@ -178,7 +185,8 @@ _3rdparty/build/$1/openssl-$(openssl_VERSION)/.build-stamp: _3rdparty/src/openss
-DOPENSSL_NO_SECURE_MEMORY \
--prefix=$(abspath _3rdparty/tgt/$1)
$(MAKE) -s -j$(3rdparty_JOBS) -C $$(@D)
$(MAKE) -s -C $$(@D) install_sw
# LIBDIR overrides "multilib" settings
$(MAKE) -s -C $$(@D) install_sw LIBDIR=lib
touch $$@

endef
Expand Down

0 comments on commit 1a7ff2d

Please sign in to comment.