Macでldd
使おうと思ったら無かった。
$ ldd
zsh: command not found: ldd
Macだと代わりにotool
というコマンドがあるらしい。
OTOOL(1)
NAME
otool - object file displaying tool
SYNOPSIS
otool [ option ... ] [ file ... ]
DESCRIPTION
The otool command displays specified parts of object files or libraries. If the -m option is not used the file arguments may be of the form libx.a(foo.o), to request information about only that object file
and not the entire library. (Typically this argument must be quoted, ``libx.a(foo.o)'', to get it past the shell.) Otool understands both Mach-O (Mach object) files and universal file formats. Otool can
display the specified information in either its raw (numeric) form (without the -v flag), or in a symbolic form using macro names of constants, etc. (with the -v or -V flag).
At least one of the following options must be specified:
ldd
と同じように使う場合は-L
オプションをつける。
$ otool -L
参照:
https://discussions.apple.com/thread/309193?start=0&tstart=0