mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
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 <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20137)
This commit is contained in:
parent
f66c1272f9
commit
f6a6f7b6aa
@ -17,7 +17,7 @@ SOURCE[../../libcrypto]=$ALL
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# blowfish 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
|
||||
|
||||
|
@ -116,11 +116,6 @@ IF[{- !$disabled{'deprecated-3.0'} -}]
|
||||
ENDIF
|
||||
SOURCE[../../providers/libfips.a]=$COMMON $BNASM
|
||||
DEFINE[../../providers/libfips.a]=$BNDEF
|
||||
# Because some CPUID implementations use some BN assembler (!!!), we
|
||||
# must include assembler code into the legacy provider under the same
|
||||
# conditions as CPUID code is included. See ../build.info
|
||||
SOURCE[../../providers/liblegacy.a]=$BNASM
|
||||
DEFINE[../../providers/liblegacy.a]=$BNDEF
|
||||
# Implementations are now spread across several libraries, so the defines
|
||||
# need to be applied to all affected libraries and modules.
|
||||
DEFINE[../../providers/libcommon.a]=$BNDEF
|
||||
|
@ -18,7 +18,7 @@ SOURCE[../../libcrypto]=$ALL
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# cast 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
|
||||
|
||||
|
@ -23,11 +23,12 @@ $ALL=$COMMON\
|
||||
|
||||
SOURCE[../../libcrypto]=$ALL $DESASM
|
||||
SOURCE[../../providers/libfips.a]=$COMMON $DESASM
|
||||
SOURCE[../../providers/liblegacy.a]=$DESASM
|
||||
IF[{- !$disabled{module} && !$disabled{shared} -}]
|
||||
SOURCE[../../providers/liblegacy.a]=$DESASM
|
||||
ENDIF
|
||||
|
||||
DEFINE[../../libcrypto]=$DESDEF
|
||||
DEFINE[../../providers/libfips.a]=$DESDEF
|
||||
DEFINE[../../providers/liblegacy.a]=$DESDEF
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# DES functions, so we must include them directly in liblegacy.a
|
||||
|
@ -5,6 +5,6 @@ SOURCE[../../libcrypto]=$ALL
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# idea 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
|
||||
|
@ -4,6 +4,6 @@ SOURCE[../../libcrypto]=md2_dgst.c md2_one.c
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# MD2 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]=md2_dgst.c md2_one.c
|
||||
ENDIF
|
||||
|
@ -4,6 +4,6 @@ SOURCE[../../libcrypto]=md4_dgst.c md4_one.c
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# MD4 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]=md4_dgst.c md4_one.c
|
||||
ENDIF
|
||||
|
@ -24,7 +24,7 @@ SOURCE[../../libcrypto]=$COMMON
|
||||
# default provider. A no-deprecated build removes the external definition from
|
||||
# libcrypto and this means that the code needs to be in liblegacy. However,
|
||||
# when building without 'dso', liblegacy is included in libcrypto.
|
||||
IF[{- !$disabled{dso} -}]
|
||||
IF[{- !$disabled{module} && !$disabled{shared} -}]
|
||||
SOURCE[../../providers/liblegacy.a]=$COMMON
|
||||
ENDIF
|
||||
|
||||
|
@ -4,6 +4,6 @@ SOURCE[../../libcrypto]=mdc2dgst.c mdc2_one.c
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# MDC2 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]=mdc2dgst.c mdc2_one.c
|
||||
ENDIF
|
||||
|
@ -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
|
||||
|
@ -21,7 +21,7 @@ SOURCE[../../libcrypto]=$RC4ASM
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# rc4 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]=$RC4ASM
|
||||
ENDIF
|
||||
|
||||
|
@ -18,7 +18,7 @@ SOURCE[../../libcrypto]=$ALL
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# rc5 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
|
||||
|
||||
|
@ -20,7 +20,7 @@ DEFINE[../../libcrypto]=$RMD160DEF
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# RIPEMD160 functions, so we must include them directly in liblegacy.a
|
||||
IF[{- $disabled{'deprecated-3.0'} && !$disabled{'module'} -}]
|
||||
IF[{- $disabled{'deprecated-3.0'} && !$disabled{module} && !$disabled{shared} -}]
|
||||
SOURCE[../../providers/liblegacy.a]=rmd_dgst.c rmd_one.c $RMD160ASM
|
||||
DEFINE[../../providers/liblegacy.a]=$RMD160DEF
|
||||
ENDIF
|
||||
|
@ -5,6 +5,6 @@ SOURCE[../../libcrypto]=$ALL
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# seed 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
|
||||
|
@ -22,7 +22,7 @@ DEFINE[../../libcrypto]=$WPDEF
|
||||
|
||||
# When all deprecated symbols are removed, libcrypto doesn't export the
|
||||
# WHIRLPOOL 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]=wp_dgst.c $WPASM
|
||||
DEFINE[../../providers/liblegacy.a]=$WPDEF
|
||||
ENDIF
|
||||
|
Loading…
Reference in New Issue
Block a user