I wrote: > I can think of one notable case where the program would know where > libguile is located: when the program bundles its own copy of Guile, and > therefore assumes that libguile and the program are always moved > together as an atomic unit. > > This practice is frowned upon on most POSIX systems (and rightfully so), > but I guess it's fairly common on Windows and MacOS X systems.
For what it's worth, I _do_ think that we should support this use case, and therefore I agree that it would probably be useful to have the API you suggested, where the program can tell libguile where libguile is located. However, the only case where this API could reasonably be used is when libguile is bundled with the program in question, because that's the only case where the program would reliably know the location of the libguile that the dynamic linker found. Regards, Mark