Do not include sparse_array.o in libssl with no-shared
authorTomas Mraz <tomas@openssl.org>
Fri, 27 Jan 2023 09:25:10 +0000 (10:25 +0100)
committerPauli <pauli@openssl.org>
Tue, 31 Jan 2023 00:10:22 +0000 (11:10 +1100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20137)

crypto/build.info

index 95b6eebf3cd60c25d86f50b7298c0cd26582754e..4b2902dd50e88c1e629c9f2626557ccaad9e9ab4 100644 (file)
@@ -102,7 +102,9 @@ $UTIL_COMMON=\
         param_build_set.c der_writer.c threads_lib.c params_dup.c \
         quic_vlint.c time.c
 
-SOURCE[../libssl]=sparse_array.c
+IF[{- !$disabled{shared} -}]
+  SOURCE[../libssl]=sparse_array.c
+ENDIF
 
 SOURCE[../libcrypto]=$UTIL_COMMON \
         mem.c mem_sec.c \