Re: Linking against a re-exported library
Re: Linking against a re-exported library
- Subject: Re: Linking against a re-exported library
- From: Kyle Sluder <email@hidden>
- Date: Tue, 31 Dec 2013 10:13:37 -0800
On Tue, Dec 31, 2013, at 10:05 AM, Kyle Sluder wrote:
>
> % otool -D lib/libpq.5.6.dylib
> lib/libpq.5.6.dylib:
> @loader_path/../lib/libpq.5.6.dylib
>
> # -- xcode build output from model framework target:
>
> ld: file not found:
> [...]/Build/Products/Debug/PostgreSQL.framework/../lib/libpq.5.6.dylib
> for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> But this is (a little) progress, as it's not trying to find a file on
> disk whose path contains "@rpath" or "@loader_path".
Bah! I've got it now. The @loader_path-relative install name should
_NOT_ include "..", because the lib/ directory is a peer of the
framework's dylib.
D'oh! Thanks Ken! (And, of course, Scott and Michael.)
--Kyle Sluder
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden