From 5a1b22fc2e67a648820ac6bd52d62775b15b50cc Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Wed, 25 Jan 2023 16:32:02 +0100 Subject: Avoid duplicating symbols in legacy.a with some build options If no-module or no-shared is used, the symbols from libcrypto should not be duplicated in legacy.a Also the BIGNUM functions are currently not needed in legacy.a at all. Fixes #20124 Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/20137) (cherry picked from commit f6a6f7b6aa84dab44384780cb77050d15c5f575e) (cherry picked from commit 58e8162e73d9061bd056f041bf07a1573d202d7a) --- crypto/rc2/build.info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/rc2') diff --git a/crypto/rc2/build.info b/crypto/rc2/build.info index b6d60d6ee3..d1f0ff9c7b 100644 --- a/crypto/rc2/build.info +++ b/crypto/rc2/build.info @@ -6,6 +6,6 @@ SOURCE[../../libcrypto]=$ALL # When all deprecated symbols are removed, libcrypto doesn't export the # rc2 functions, so we must include them directly in liblegacy.a -IF[{- $disabled{'deprecated-3.0'} -}] +IF[{- $disabled{'deprecated-3.0'} && !$disabled{module} && !$disabled{shared} -}] SOURCE[../../providers/liblegacy.a]=$ALL ENDIF -- cgit v1.2.3