summaryrefslogtreecommitdiffstats
path: root/crypto/rand/build.info
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2020-03-05 12:50:31 -0500
committerRichard Levitte <levitte@openssl.org>2020-04-16 13:52:22 +0200
commit705536e2b5c4167dbda2e0046d83f9e0f4a65514 (patch)
tree5b76e00908f3d8c5dcbb75f094a4c06d989e97d5 /crypto/rand/build.info
parent7165593ce5a07a6860d4d408ad640ee707172936 (diff)
Use build.info, not ifdef for crypto modules
Don't wrap conditionally-compiled files in global ifndef tests. Instead, test if the feature is disabled and, if so, do not compile it. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11263)
Diffstat (limited to 'crypto/rand/build.info')
-rw-r--r--crypto/rand/build.info5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/rand/build.info b/crypto/rand/build.info
index 0925c4b2de..80f5710174 100644
--- a/crypto/rand/build.info
+++ b/crypto/rand/build.info
@@ -2,6 +2,9 @@ LIBS=../../libcrypto
$COMMON=rand_lib.c rand_crng_test.c rand_win.c rand_unix.c rand_vms.c \
drbg_lib.c drbg_ctr.c rand_vxworks.c drbg_hash.c drbg_hmac.c
+IF[{- !$disabled{'egd'} -}]
+ $COMMON=$COMMON rand_egd.c
+ENDIF
-SOURCE[../../libcrypto]=$COMMON randfile.c rand_err.c rand_egd.c
+SOURCE[../../libcrypto]=$COMMON randfile.c rand_err.c
SOURCE[../../providers/libfips.a]=$COMMON