summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 6f8985a521..4ea29d4058 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -338,6 +338,8 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False, header
ret = False
else:
conf.define('HAVE_LIB%s' % string.replace(lib.upper(),'-','_'), 1)
+ conf.env['LIB_' + lib.upper()] = lib
+ LOCAL_CACHE_SET(conf, 'TARGET_TYPE', lib, 'SYSLIB')
if not ret:
return ret
@@ -347,15 +349,6 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False, header
if not conf.check_cc(function_name=f, lib=liblist, header_name=hlist):
ret = False
- if not ret:
- return ret
-
- for lib in liblist:
- if GET_TARGET_TYPE(conf, lib):
- continue
- conf.env['LIB_' + lib.upper()] = lib
- LOCAL_CACHE_SET(conf, 'TARGET_TYPE', lib, 'SYSLIB')
-
return ret