Re: Re[2]: Using a dylib without installing it
Re: Re[2]: Using a dylib without installing it
- Subject: Re: Re[2]: Using a dylib without installing it
- From: George Warner <email@hidden>
- Date: Wed, 11 Jul 2007 13:36:22 -0700
- Thread-topic: Re[2]: Using a dylib without installing it
On Tue, 10 Jul 2007 18:01:35 -0500, Michael Rice <email@hidden>
wrote:
> If you set the environment variable DYLD_LIBRARY_PATH to include the
> path where your .dylib is located, then you don't have to hard code
> the path into the binary.
Not a robust solution ether since the scope isn't per-.dylib. What if I want
one dylib over there and another somewhere else. Before you say the
DYLIB_LIBRARY_PATH could be a comma separated lists of paths think about
what happens if one of the dylib's exists at both locations (dumb, but it
happens); Which path do you mean for which dylib?
I agree that hard coding the runtime locations into the linking libs is dumb
but the environment variable isn't the solution. The solution would be to be
able to specify the runtime location on the command line at link time (not
when the specific dylib is linked but when dylib(s) that use it are linked).
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
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