Bug 767403 - also match readelf case on *.so.* to fix *BSDs. r=glandium

This commit is contained in:
Landry Breuil 2012-06-26 22:48:57 +02:00
parent 8784cfa2dc
commit be1e0d9e32

View File

@ -9,6 +9,7 @@ upon that are in the same directory.
from optparse import OptionParser
import os
import re
import fnmatch
import subprocess
import sys
@ -95,7 +96,7 @@ def main():
ext = os.path.splitext(lib)[1]
if ext == '.dll':
func = dependentlibs_dumpbin
elif ext == '.so':
elif ext == '.so' or fnmatch.fnmatch(lib, '*.so.*'):
func = dependentlibs_readelf
elif ext == '.dylib':
func = dependentlibs_otool