summaryrefslogtreecommitdiff
path: root/lib/crypto/wscript_build
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/wscript_build')
-rw-r--r--lib/crypto/wscript_build11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/crypto/wscript_build b/lib/crypto/wscript_build
index 7bc4eb7dd0..6ad1cade98 100644
--- a/lib/crypto/wscript_build
+++ b/lib/crypto/wscript_build
@@ -1,8 +1,15 @@
#!/usr/bin/env python
+extra_source = ''
+extra_deps = ''
+if bld.CONFIG_SET('HAVE_BSD_MD5_H'):
+ extra_deps += ' bsd'
+else:
+ extra_source += ' md5.c'
+
bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
- source='crc32.c md5.c hmacmd5.c md4.c arcfour.c sha256.c hmacsha256.c aes.c rijndael-alg-fst.c',
- deps='talloc'
+ source='crc32.c hmacmd5.c md4.c arcfour.c sha256.c hmacsha256.c aes.c rijndael-alg-fst.c' + extra_source,
+ deps='talloc' + extra_deps
)