File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -310,12 +310,17 @@ def _all_library_names(self):
310310 libs = list (
311311 set (self .get_library_names ()) | set (self .get_dlopen_library_names ())
312312 )
313+ libs = []
314+ [libs .append (lib ) for lib in self .get_library_names () if lib not in libs ]
315+ [libs .append (lib ) for lib in self .get_dlopen_library_names () if lib not in libs ]
316+ dep_libs = []
313317 for dep in self .cfg .depends :
314318 pkg = self .pkgcfg .get_pkg (dep )
315319 libnames = pkg .get_library_names ()
316320 if libnames :
317- libs .extend (libnames )
318- return list (reversed (libs ))
321+ [dep_libs .append (lib ) for lib in libnames if lib not in libs ]
322+ libs .extend (reversed (dep_libs ))
323+ return libs
319324
320325 def _all_extra_objects (self ):
321326 libs = []
You can’t perform that action at this time.
0 commit comments