From 98684ba7885b9a62ba05af9093aa0f1010d1ee02 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 2 Jan 2024 18:08:01 +0100 Subject: [PATCH] package/libopenssl: fix build without MMU Commit 973b1eba5a4ee72f040bd471b147267e36be73ad removed third patch because of https://github.com/openssl/openssl/commit/78634e8ac253a8edf338d329965724dfa8e033ab however OPENSSL_NO_MADVISE wasn't updated to reflect the new HAVE_MADVISE logic resulting in the following build failure without MMU: /home/buildroot/autobuild/instance-2/output-1/host/riscv64-buildroot-linux-uclibc/bin/ld.real: libcrypto.a(libcrypto-lib-mem_sec.o): in function `sh_init': /home/buildroot/autobuild/instance-2/output-1/build/libopenssl-3.2.0/crypto/mem_sec.c:557: undefined reference to `madvise' Fixes: - http://autobuild.buildroot.org/results/4328c025f6f2bcd2ebc5a4368c78e00da0aea1ae Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/libopenssl/libopenssl.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/libopenssl/libopenssl.mk b/package/libopenssl/libopenssl.mk index 928f3379f8..7dc6d93256 100644 --- a/package/libopenssl/libopenssl.mk +++ b/package/libopenssl/libopenssl.mk @@ -26,7 +26,7 @@ LIBOPENSSL_CFLAGS += -DOPENSSL_SMALL_FOOTPRINT endif ifeq ($(BR2_USE_MMU),) -LIBOPENSSL_CFLAGS += -DHAVE_FORK=0 -DOPENSSL_NO_MADVISE +LIBOPENSSL_CFLAGS += -DHAVE_FORK=0 -DHAVE_MADVISE=0 endif ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y)