Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenSSL build #81

Merged
merged 1 commit into from
Feb 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions 3rdparty.mk
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ _3rdparty/build/$1/yara-$(yara_VERSION)/.build-stamp: _3rdparty/src/yara-$(yara_
--disable-magic --disable-cuckoo --enable-macho --enable-dex \
CC=$$(firstword $$(shell PATH=$$(PATH) which $1-gcc gcc cc)) \
CPPFLAGS="-I$(abspath _3rdparty/tgt/$1/include) $(if $(findstring -mingw32,$1),-UHAVE__MKGMTIME)" \
CFLAGS="$(if $(findstring -linux-musl,$1),-static)"
CFLAGS="$(if $(findstring -linux-musl,$1),-static)" \
LDFLAGS="-L$(abspath _3rdparty/tgt/$1/lib)"
$(MAKE) -s -C $$(@D) uninstall
$(MAKE) -s -j$(3rdparty_JOBS) -C $$(@D)
$(MAKE) -s -C $$(@D) install
Expand All @@ -164,11 +165,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 +186,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
Loading