diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-11-05 16:57:57 -0500 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-06 14:51:38 +0100 |
commit | 630f6626a89322f62b0709c3bab686c4c555c73c (patch) | |
tree | ba275f5e7fad2939d670897b9e176b65caf47f19 | |
parent | a4cfd0a8e5542e333810bd94091a5176cbc2901a (diff) | |
download | gobject-introspection-630f6626a89322f62b0709c3bab686c4c555c73c.tar.gz |
scanner: Skip ldd for library by filename
-rw-r--r-- | giscanner/shlibs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py index 7b7b2d02..f70c54da 100644 --- a/giscanner/shlibs.py +++ b/giscanner/shlibs.py @@ -119,7 +119,10 @@ def _resolve_non_libtool(options, binary, libraries): def resolve_from_ldd_output(libraries, output, basename=False): patterns = {} for library in libraries: - patterns[library] = _ldd_library_pattern(library) + if not os.path.isfile(library): + patterns[library] = _ldd_library_pattern(library) + if len(patterns) == 0: + return [] shlibs = [] for line in output.splitlines(): |