build: Only link against libcrypt where needed
authorAndrew Bartlett <abartlet@samba.org>
Wed, 6 Nov 2019 02:44:45 +0000 (15:44 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 13 Nov 2019 08:42:30 +0000 (08:42 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/replace/wscript
source3/wscript_build
source4/dsdb/samdb/ldb_modules/wscript_build_server

index 898c2f164457755793da53f40e8d21dcb0fe3186..a2bc60478add9b9922ca0fd15ba6514de221e779 100644 (file)
@@ -913,7 +913,7 @@ def build(bld):
                       # at the moment:
                       # hide_symbols=bld.BUILTIN_LIBRARY('replace'),
                       private_library=True,
-                      deps='crypt dl attr' + extra_libs)
+                      deps='dl attr' + extra_libs)
 
     replace_test_cflags = ''
     if bld.CONFIG_SET('HAVE_WNO_FORMAT_TRUNCATION'):
index fb7c04cce13b2a88adfcff4c8d7b83ed5ceb5441..54982a92954556e35122a5af2d9f70eaecd9b60f 100644 (file)
@@ -916,6 +916,7 @@ bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
                            auth/pass_check.c
                            ''',
                     deps='''
+                         crypt
                          pam
                          PAM_ERRORS
                          ''')
index 0cdf73d3a7d27ad49c72302e86410b88e66ba80c..2eec7c4fa7d8b66b0502b9b977aa93e3692eb5be 100644 (file)
@@ -195,7 +195,7 @@ bld.SAMBA_MODULE('ldb_password_hash',
        init_function='ldb_password_hash_module_init',
        module_init_name='ldb_init_module',
        internal_module=False,
-       deps='talloc samdb LIBCLI_AUTH NDR_DRSBLOBS authkrb5 krb5 gpgme DSDB_MODULE_HELPERS'
+       deps='talloc samdb LIBCLI_AUTH NDR_DRSBLOBS authkrb5 krb5 gpgme DSDB_MODULE_HELPERS crypt'
        )