aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Makefile2
-rw-r--r--init/init.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/init/Makefile b/init/Makefile
index 07b80261..be4b768b 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -21,4 +21,6 @@ SRCS = init.c
OBJS = $(SRCS:.c=.o)
target = init
+init-CPPFLAGS=-DLIBEXECDIR=\"${libexecdir}\"
+
include ../Makeconf
diff --git a/init/init.c b/init/init.c
index 93e0470a..ca40d527 100644
--- a/init/init.c
+++ b/init/init.c
@@ -139,7 +139,7 @@ main (int argc, char **argv)
sa.sa_flags |= SA_RESTART;
sigaction (SIGCHLD, &sa, NULL);
- char *args[] = { "/libexec/runsystem.hurd", NULL };
+ char *args[] = { LIBEXECDIR "/runsystem.hurd", NULL };
switch (child_pid = fork ())
{