From eab41809a024b38e0b88278cc6380e219ddb5301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 19 Sep 2024 08:43:23 +0200 Subject: [PATCH] Compilation with static OpenSSL3 --- scripts/setup.sh | 9 +++++++++ utils/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index 5c25ff9..0b0242f 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -7,3 +7,12 @@ if [ ! -d lib/updfparser ] ; then make BUILD_STATIC=1 BUILD_SHARED=0 popd fi + +# OpenSSL legacy +if [ ! -d lib/openssl ] ; then + git clone --branch openssl-3.3 https://github.com/openssl/openssl.git lib/openssl + pushd lib/openssl + ./Configure disable-apps disable-shared enable-legacy + make -j4 + popd +fi diff --git a/utils/Makefile b/utils/Makefile index 5fa5fe2..290ed6f 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -10,6 +10,7 @@ CXXFLAGS=-Wall -fPIC -I$(ROOT)/include STATIC_DEP= LDFLAGS += -L$(ROOT) -lcrypto -lzip -lz -lcurl -lpugixml +LDFLAGS += -L$(ROOT) $(ROOT)/lib/openssl/libcrypto.a -lzip -lz -lcurl -lpugixml ifneq ($(STATIC_UTILS),) STATIC_DEP = $(ROOT)/libgourou.a