On Mon, Apr 13, 2015 at 11:10:51AM +0000, Macario, Gianpaolo wrote: > Unfortunately it looks to me that the `--prefix=xxx` option provided > to configure will be hardcoded to the path returned by 'git > --exec-path', and I do not see how this may actually be made dependent > on the directory where the binary tarball will be extracted. Sorry for the late reply, but I just noticed this and happened to be looking at RUNTIME_PREFIX issues recently. You're right that no amount of --prefix or other settings can help you with making binaries that are relocatable after the fact. You do need something like RUNTIME_PREFIX, but as you found, it does not work very well on Unix systems. I do not know if there are other issues, but at least the _first_ issue that must be dealt with is that git_extract_argv0_path may get a bare name like "git", without its PATH. So you will have to compute the full path to the binary in order to find the rest of the files. There was some minor discussion here: http://thread.gmane.org/gmane.comp.version-control.git/267143/focus=267606 (see the notes after the commit message, and the response from Jonathan). I hope that helps. -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html