diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-11-05 16:57:57 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-11-05 17:03:40 -0500 |
commit | 581f74be8e4919ac7dd4bec036eeda7605f425d7 (patch) | |
tree | a4b108955920511a8c7b056e523e5ea3b5b776ed /giscanner/shlibs.py | |
parent | c86a5be5521bd275bda7ffb8217853a4b7b91cdc (diff) | |
download | gobject-introspection-581f74be8e4919ac7dd4bec036eeda7605f425d7.tar.gz |
scanner: Skip ldd for library by filename
Diffstat (limited to 'giscanner/shlibs.py')
-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(): |