wafsamba: Use final_libs list to determine if a target needs private libraries, rathe...
[ira/wip.git] / buildtools / wafsamba / samba_utils.py
index 5e16a5d470b6c9566b38c7c8db966ef07ddef7b8..c388150f7a8e6581606bf5b91b3eff0932966166 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 getattr(target, "uselib_local", []):
+    for lib in target.final_libs:
         t = bld.name_to_obj(lib, bld.env)
         if t and getattr(t, 'private_library', False):
             return True