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: "parag vibhute" <email@hidden>
- Date: Tue, 11 Dec 2007 19:31:15 +0530
On Dec 11, 2007 7:06 PM, Alastair Houghton <
email@hidden> wrote:
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.
Not understood ur statement "It's used if you are trying to link against something that hasn't already been copied to its final location." Can u please eloborate it in detail? Is it same as Library search path?
> 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.
Ya will try to find out answer.
--
There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'.
_______________________________________________
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