Re: Dylib Embedded Lib Paths
Re: Dylib Embedded Lib Paths
- Subject: Re: Dylib Embedded Lib Paths
- From: Gregory Seidman <email@hidden>
- Date: Sat, 9 Apr 2005 20:51:03 -0400
- Mail-followup-to: email@hidden
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden