Re: How to make a program look for dylibs other than /usr/local/lib?
Re: How to make a program look for dylibs other than /usr/local/lib?
- Subject: Re: How to make a program look for dylibs other than /usr/local/lib?
- From: Alastair Houghton <email@hidden>
- Date: Tue, 11 Dec 2007 13:36:56 +0000
On 11 Dec 2007, at 13:30, parag vibhute wrote:
2. The problem you're trying to solve.
The same problem i.e. do not want to change environment variables &
also want to place dependant dynamic library at non standard location.
You need to use install_name_tool. The -dylib_file option tells the
linker (not the dynamic linker) where to find a dylib. It's used if
you are trying to link against something that hasn't already been
copied to its final location. The final image will still contain the
path that was hard-coded into the dylib.
Man page of ld mentions a strange thing that this dylib_file option
only works with 32 bit only. So on my macbook I think it is not
working. But then why apple did not give similar type of setting for
64 bit.
You would have to deliberately build for 64-bit for that to be the
reason. I think it's just that you misunderstand what the option does.
And as for why it isn't supported for 64-bit builds, you'd have to ask
Apple.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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