1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

wafsamba: Cope with not everything having a final_libs attribute.

This commit is contained in:
Jelmer Vernooij
2011-12-04 15:36:27 +01:00
parent f9091d6fa0
commit 41921d6682

View File

@ -65,7 +65,7 @@ def ADD_LD_LIBRARY_PATH(path):
def needs_private_lib(bld, target):
'''return True if a target links to a private library'''
for lib in target.final_libs:
for lib in getattr(target, "final_libs", []):
t = bld.name_to_obj(lib, bld.env)
if t and getattr(t, 'private_library', False):
return True