site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Mail-followup-to: darwin-dev@lists.apple.com User-agent: Mutt/1.5.6+20040907i On Sat, Apr 09, 2005 at 06:44:53PM -0600, Jeshua Lacock wrote: } 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. The tool you are looking for is named install_name_tool, and it's shipped with the MacOS X developer tools. I haven't used pure darwin, but I suspect that the same tool is included and, presumably, has the same man page. } Any advice or hints would be greatly appreciated. } Thanks, } Jeshua Lacock ___________________________ --Greg _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Gregory Seidman