Re: Problem changing dynamic library install name
Re: Problem changing dynamic library install name
- Subject: Re: Problem changing dynamic library install name
- From: Ken Thomases <email@hidden>
- Date: Wed, 01 Jun 2011 18:45:04 -0500
On Jun 1, 2011, at 6:39 PM, Laurent Daudelin wrote:
> I've read about the topic of packaging dynamic libraries with an application and the issues. So, following some recommendations I found on the list archive, I'm trying to use install_name_tool to change the install name of the library I need. However, it doesn't seem like install_name_tool does anything. When I issue the command 'install_name_tool -add_rpath @executable/../Frameworks/icu/libicu.dylib libicu.dylib' and then check with otool -D, otool still reports the install name to be "libicu.dylib".
The command you gave is for adding an rpath to the library, not for changing its install name. To change its install name, you'd use a command like:
install_name_tool -id @executable/../Frameworks/icu/libicu.dylib libicu.dylib
Note the use of "-id", not "-add_rpath".
Regards,
Ken _______________________________________________
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