Some private libcrypto symbols are also included in legacy.so.
Unfortunately this included some files with "RUN_ONCE" functions and
global data. This doesn't get properly cleaned up when OpenSSL exits.
Therefore we are more selective about the symbols we include in legacy.so.
Fixes #13560
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14646)
punycode.c \
$UPLINKSRC
SOURCE[../providers/libfips.a]=$UTIL_COMMON
-SOURCE[../providers/liblegacy.a]=$UTIL_COMMON
+SOURCE[../providers/liblegacy.a]=cryptlib.c $CPUIDASM ctype.c
# Implementations are now spread across several libraries, so the defines
# need to be applied to all affected libraries and modules.