Print rpath of an executable on macOS
First of all, understand that an executable doesn’t contain a single rpath entry, but an array of one or more entries. Second, you can use otool to list an image’s rpath entries. Using otool -l, you’ll get output like the following, at the very end of which are the rpath entries: Load command 34 cmd … Read more