author | Steffen Prohaska <prohaska@zib.de> | |
Sun, 18 Jan 2009 12:00:09 +0000 (13:00 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 Jan 2009 08:26:05 +0000 (00:26 -0800) | ||
commit | 026fa0d5ad9538ca76838070861531c037d7b9ba | |
tree | 62b19e4750f7e3fc44f93385f758b6a7b3ec2d6c | tree | snapshot |
parent | a83c88525ed6d8d940f8cf7f21e92b189f7844e3 | commit | diff |
Move computation of absolute paths from Makefile to runtime (in preparation for RUNTIME_PREFIX)
This commit prepares the Makefile for relocatable binaries (called
RUNTIME_PREFIX). Such binaries will be able to be moved together
with the system configuration files to a different directory,
requiring to compute the prefix at runtime.
In a first step, we make all paths relative in the Makefile and
teach system_path() to add the prefix instead. We used to compute
absolute paths in the Makefile and passed them to C as defines. We
now pass relative paths to C and call system_path() to add the
prefix at runtime.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit prepares the Makefile for relocatable binaries (called
RUNTIME_PREFIX). Such binaries will be able to be moved together
with the system configuration files to a different directory,
requiring to compute the prefix at runtime.
In a first step, we make all paths relative in the Makefile and
teach system_path() to add the prefix instead. We used to compute
absolute paths in the Makefile and passed them to C as defines. We
now pass relative paths to C and call system_path() to add the
prefix at runtime.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
builtin-help.c | diff | blob | history | |
exec_cmd.c | diff | blob | history |