aboutsummaryrefslogtreecommitdiff
path: root/startup
diff options
context:
space:
mode:
Diffstat (limited to 'startup')
-rw-r--r--startup/Makefile1
-rw-r--r--startup/startup.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/startup/Makefile b/startup/Makefile
index 8df0bd85..43c75187 100644
--- a/startup/Makefile
+++ b/startup/Makefile
@@ -34,6 +34,7 @@ notifyServer-CFLAGS="-DMIG_EOPNOTSUPP=EOPNOTSUPP"
fsysServer-CFLAGS="-DMIG_EOPNOTSUPP=EOPNOTSUPP"
fsServer-CFLAGS="-DMIG_EOPNOTSUPP=EOPNOTSUPP"
ioServer-CFLAGS="-DMIG_EOPNOTSUPP=EOPNOTSUPP"
+startup-CPPFLAGS=-DLIBEXECDIR=\"${libexecdir}\"
include ../Makeconf
diff --git a/startup/startup.c b/startup/startup.c
index 00d58989..9faeb462 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -1261,7 +1261,7 @@ start_child (const char *prog, char **progargs)
if (progargs == 0)
{
- const char *argv[] = { "/libexec/console-run", prog, 0 };
+ const char *argv[] = { LIBEXECDIR "/console-run", prog, 0 };
err = argz_create ((char **) argv, &args, &arglen);
}
else
@@ -1271,7 +1271,7 @@ start_child (const char *prog, char **progargs)
++argc;
{
const char *argv[2 + argc + 1];
- argv[0] = "/libexec/console-run";
+ argv[0] = LIBEXECDIR "/console-run";
argv[1] = prog;
argv[2 + argc] = 0;
while (argc-- > 0)
@@ -1347,7 +1347,7 @@ launch_something (const char *why)
static unsigned int try;
static const char *const tries[] =
{
- "/libexec/runsystem",
+ LIBEXECDIR "/runsystem",
_PATH_BSHELL,
"/bin/shd", /* XXX */
};