site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Aug 3, 2006, at 7:26 PM, Andreas.Haas@Sun.COM wrote: Hi all, I try to figure out the link options for specifying RPATH/RUNPATH under Darwin. I need this to overcome the need of setting LD_LIBRARY_PATH with Grid Engine as described in http://gridengine.sunsource.net/issues/show_bug.cgi?id=2090 Solaris: -R $ORIGIN/../lib Linux: -rpath $ORIGIN/../lib I believe there must be something related for Darwin, but I found no such in ld(1) man page. Peter _______________________________________________ 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... with other OSes there are link options that allow library pathes be set *relative* to the executable path at the time when the executable is linked through Anyone knowing this? $ORIGIN on solaris and linux allow you to specify the library location relative to the application or library that needs it. For similar options on darwin see the man page for install_name_tool(1) and the dyld release note for information about @executable_path and @loader_path. This email sent to site_archiver@lists.apple.com