summaryrefslogtreecommitdiff
path: root/giscanner/shlibs.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/shlibs.py')
-rw-r--r--giscanner/shlibs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index c93d20cf..4e459571 100644
--- a/giscanner/shlibs.py
+++ b/giscanner/shlibs.py
@@ -117,6 +117,11 @@ def _resolve_non_libtool(options, binary, libraries):
shlibs = []
for line in proc.stdout:
line = line.decode('ascii')
+ # ldd on *BSD show the argument passed on the first line even if
+ # there is only one argument. We have to ignore it because it is
+ # possible for the name of the binary to match _ldd_library_pattern.
+ if line == binary.args[0] + ':\n':
+ continue
for library, pattern in patterns.items():
m = pattern.search(line)
if m: