AboutSummaryRefsLogTreeCommitDiffStats
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2017-01-14 16:56:37 +0100
committerMathieu Lirzin <mthl@gnu.org>2017-09-27 23:21:54 +0200
commit44e0e6f305e9f579af40915723b1965c565e96b9 (patch)
tree4aefbe06e3c08423f50d7b92d948244ea2ebbc03
parent57b9294277f2f92e1478ff0d478e483d0a584347 (diff)
downloadmcron-44e0e6f305e9f579af40915723b1965c565e96b9.tar.gz
mcron-44e0e6f305e9f579af40915723b1965c565e96b9.tar.bz2
mcron-44e0e6f305e9f579af40915723b1965c565e96b9.zip
build: Define PACKAGE_LOAD_COMPILED_PATH macro.
* Makefile.am (AM_CPPFLAGS): Define PACKAGE_LOAD_COMPILED_PATH macro. * src/wrapper.c (main): Use it.
-rw-r--r--Makefile.am6
-rw-r--r--src/wrapper.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index a9b2bf7..f615857 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,7 +20,11 @@
bin_PROGRAMS = bin/mcron bin/crontab
sbin_PROGRAMS = bin/cron
-AM_CPPFLAGS = -DPACKAGE_LOAD_PATH=\"$(moduledir)\" -D_GNU_SOURCE
+AM_CPPFLAGS = \
+ -DPACKAGE_LOAD_PATH=\"$(moduledir)\" \
+ -DPACKAGE_LOAD_COMPILED_PATH=\"$(moduledir)\" \
+ -D_GNU_SOURCE
+
AM_CFLAGS = @GUILE_CFLAGS@
LDADD = @GUILE_LIBS@
diff --git a/src/wrapper.c b/src/wrapper.c
index 52bd6ea..cef6b3c 100644
--- a/src/wrapper.c
+++ b/src/wrapper.c
@@ -43,7 +43,7 @@ main (int argc, char **argv)
if (getenv ("MCRON_UNINSTALLED") == NULL)
{
wrap_env_path ("GUILE_LOAD_PATH", PACKAGE_LOAD_PATH);
- wrap_env_path ("GUILE_LOAD_COMPILED_PATH", PACKAGE_LOAD_PATH);
+ wrap_env_path ("GUILE_LOAD_COMPILED_PATH", PACKAGE_LOAD_COMPILED_PATH);
}
scm_boot_guile (argc, argv, inner_main, 0);