Re: install_name_tool & glib
Re: install_name_tool & glib
- Subject: Re: install_name_tool & glib
- From: Sherm Pendley <email@hidden>
- Date: Wed, 14 Dec 2005 16:10:02 -0500
On Dec 13, 2005, at 9:39 PM, Jonah Horowitz wrote:
I'm trying to include glib (and gobject and libintl) as
"Frameworks" in my application bundle. I've found several
resources on the web that show how to use install_name_tool and
otool to modify the install_name in the libraries so they can be
put inside a bundle. For some reason it's not working.
Here exactly what I'm doing.
pb-jonah:~/glib-2.8.4 jonah$ export LDFLAGS="-
headerpad_max_install_names"
pb-jonah:~/glib-2.8.4 jonah$ ./configure
...
pb-jonah:~/glib-2.8.4 jonah$ make clean ; make
...
pb-jonah:~/glib-2.8.4 jonah$ cd glib/.libs
pb-jonah:~/glib-2.8.4/glib/.libs/ jonah$ otool -L
libglib-2.0.0.800.4.dylib
libglib-2.0.0.800.4.dylib:
/usr/local/lib/libglib-2.0.0.dylib (compat...
/usr/lib/libSystem.B.dylib (compat...
/usr/lib/libiconv.2.dylib (compat...
/usr/local/lib/libintl.2.dylib (compat...
pb-jonah:~/glib-2.8.4/glib/.libs jonah$ install_name_tool -change /
usr/local/lib/libglib-2.0.0.dylib @executable_path/../Frameworks/
libglib-2.0.0.800.4.dylib libglib-2.0.0.800.4.dylib
You want to use the '-id' option. That will change the install name
of the library.
If you'd linked an app to a glib that has a given install name, and
then wanted to change the app so that it referred to a different one
instead, you could use install_name_tool's '-change' on the app, to
change the old reference to the new one.
sherm--
Cocoa programming in Perl:
http://camelbones.sourceforge.net
Hire me! My resume:
http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden