[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic argv0 relocation

From: Ken Raeburn
Subject: Re: dynamic argv0 relocation
Date: Fri, 10 Jun 2005 11:52:09 -0400

On Jun 10, 2005, at 09:05, Jan Nieuwenhuizen wrote:
It would be nice if guile/libguile would have/support dynamic
relocation based on the location of the executable (be it guile or

Would configuring Guile with this option break executables linked against libguile and installed with different prefixes? Or is there something the application can do (aside from using the same prefix) to find the Guile code?

Below is an attempt that works, but I'm not sure about the api nor the
implementation.  What do you think?

I haven't reviewed it closely, but at first glance, you do seem to be assuming that whoever runs configure doesn't use the --bindir (etc) arguments, so that you know how to construct $bindir (etc) from a single prefix string. That's all well and fine, and probably correct 99% of the time, but it might be good to add a check in the configure script, and error out if one of the directory variables is set to something other than what's expected.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]