diff options
author | Ludovic Courtès | 2015-03-11 11:08:57 +0100 |
---|---|---|
committer | Ludovic Courtès | 2015-03-11 11:08:57 +0100 |
commit | 4425f9d10eeac36191f281dfd94f342bf7e2b15f (patch) | |
tree | 6aa373019d8da0be074df22e095f2f7d78488301 | |
parent | 37f280c58cef61587a23c1bf636b468d19b6d1c5 (diff) | |
download | skribilo-4425f9d10eeac36191f281dfd94f342bf7e2b15f.tar.gz skribilo-4425f9d10eeac36191f281dfd94f342bf7e2b15f.tar.lz skribilo-4425f9d10eeac36191f281dfd94f342bf7e2b15f.zip |
build: Override 'GUILE_LOAD_COMPILED_PATH' entirely while building.
* guilec.am (.scm.go): Override GUILE_LOAD_COMPILED_PATH.
-rw-r--r-- | guilec.am | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -18,10 +18,14 @@ AM_V_GUILEC = $(AM_V_GUILEC_$(V)) AM_V_GUILEC_ = $(AM_V_GUILEC_$(AM_DEFAULT_VERBOSITY)) AM_V_GUILEC_0 = @echo " GUILEC" $@; +# Override $GUILE_LOAD_COMPILED_PATH altogether so we don't end up +# loading .go files from $(moduledir) coming from a previous +# installation (they could be more recent than the local .scm files if +# the user run 'make install' recently.) .scm.go: $(AM_V_GUILEC)$(MKDIR_P) `dirname $@` ; \ GUILE_AUTO_COMPILE=0 \ - GUILE_LOAD_COMPILED_PATH="$(builddir):$(top_builddir)/src/guile:$$GUILE_LOAD_COMPILED_PATH" \ + GUILE_LOAD_COMPILED_PATH="$(builddir):$(top_builddir)/src/guile" \ $(GUILE) -L "$(srcdir)" -L "$(top_srcdir)/src/guile" \ -L "$(top_builddir)/src/guile" \ -c "(use-modules (system base compile) \ |