https://bugzilla.gnome.org/show_bug.cgi?id=606686
import re
import subprocess
+import platform
from .utils import get_libtool_command, extract_libtool_shlib
if libtool:
args.extend(libtool)
args.append('--mode=execute')
- args.extend(['ldd', binary.args[0]])
+ if platform.system() == 'Darwin':
+ args.extend(['otool', '-L', binary.args[0]])
+ else:
+ args.extend(['ldd', binary.args[0]])
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
patterns = {}
for library in libraries: