Dave Page wrote:
> The linker hardcodes library paths into exes and libs. We examine these
> paths at install time using otool and rewrite them from the staging
> paths on the build machine to whatever directory the user chose to
> install to using install_name_tool(1).
Yep, the mac linker seems to default to absolute rpath linking, which I
personally find *really* frustrating.
> The other option would be to rewrite the paths to be relative at build
> time I guess.
That's the approach most Mac apps take, and is supported by the @
relative path syntax in install_name_tool.
--
Craig Ringer