From 617e0ce0117bf297be8ca4ee132cdff03dc34448 Mon Sep 17 00:00:00 2001 From: Sedat Dilek Date: Fri, 27 May 2022 17:43:29 +0200 Subject: [PATCH] extract-cert: Force build against OpenSSL API Compat v1.1.x Suppress -Wdeprecated-declarations warnings when building against OpenSSL v3.0.x. Tested with LLVM version 14.0.4 and OpenSSL v3.0.3 on Debian/unstable AMD64. Suggested-by: James Bottomley Signed-off-by: Sedat Dilek --- certs/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/certs/Makefile b/certs/Makefile index d8443cfb1c40..b14bbd0674c4 100644 --- a/certs/Makefile +++ b/certs/Makefile @@ -75,4 +75,5 @@ targets += x509_revocation_list hostprogs := extract-cert HOSTCFLAGS_extract-cert.o = $(shell pkg-config --cflags libcrypto 2> /dev/null) +HOSTCFLAGS_extract-cert.o += -DOPENSSL_API_COMPAT=0x10100000L HOSTLDLIBS_extract-cert = $(shell pkg-config --libs libcrypto 2> /dev/null || echo -lcrypto) -- 2.36.1