]> git.samba.org - abartlet/samba.git/.git/blobdiff - buildtools/wafsamba/samba_utils.py
wafsamba: Cope with not everything having a final_libs attribute.
[abartlet/samba.git/.git] / buildtools / wafsamba / samba_utils.py
index c388150f7a8e6581606bf5b91b3eff0932966166..71cfbc5b60aca825b9661a6cc4bec2085cba2000 100644 (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