Dylib Embedded Lib Paths
Dylib Embedded Lib Paths
- Subject: Dylib Embedded Lib Paths
- From: Jeshua Lacock <email@hidden>
- Date: Sat, 9 Apr 2005 18:44:53 -0600
Greetings,
I often run into a common problem when using Mach-O dynamically linked
shared libraries (dylibs), sometimes the paths to the linked, dependent
shared dylibs are to my source directory (or somewhere else), and not
to the distribution directory (eg a dylib is linked to:
"/usr/src/foo/libfoo.dylib" instead "/usr/foo/lib/libfoo.dylib"). This
of course creates problems unless I export the DYLD_LIBRARY_PATH
environment variable including the "/usr/foo/lib" path. in many cases,
resorting on DYLD_LIBRARY_PATH is far from ideal.
Does anyone know if it is possible to change the linked paths, short of
relinking the library, or using DYLD_LIBRARY_PATH? It seems like there
should be a way to just edit the path, which would be ideal. I can see
that the linked library paths are just strings of text, so it seems
plausible to edit them somehow.
Any advice or hints would be greatly appreciated.
Thanks,
Jeshua Lacock ___________________________
Programmer/Owner Phone: 877.240.1364
http://OpenOSX.com Fax: 415.462.6211
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden