diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-11-23 15:29:18 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-11-23 15:29:18 +0100 |
commit | f701287497d545061009ad572c69f86bb10d7a6a (patch) | |
tree | d1964a59cabb198ef9637a09b0aedc3ae5ea3135 /module | |
parent | 9447207f0c9a52d48b2de20b444405dfdd43d465 (diff) |
Allow $GUILE_FOR_BUILD to use its own environment when cross-compiling.
* am/guilec (.scm.go): Use `-L' to specify the search path.
* module/Makefile.am (ice-9/psyntax-pp.go): Likewise.
* meta/uninstalled-env.in (top_builddir): Leave $GUILE_LOAD_PATH,
$GUILE_SYSTEM_PATH, and $GUILE_SYSTEM_EXTENSIONS_PATH unchanged when
cross-compiling.
Diffstat (limited to 'module')
-rw-r--r-- | module/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/Makefile.am b/module/Makefile.am index 2c5e2595d..56fa48d99 100644 --- a/module/Makefile.am +++ b/module/Makefile.am @@ -79,10 +79,13 @@ ice-9/psyntax-pp.scm.gen: .PHONY: ice-9/psyntax-pp.scm.gen +# Keep this rule in sync with that in `am/guilec'. ice-9/psyntax-pp.go: ice-9/psyntax.scm ice-9/psyntax-pp.scm - $(AM_V_GUILEC) GUILE_AUTO_COMPILE=0 \ + $(AM_V_GUILEC)GUILE_AUTO_COMPILE=0 \ $(top_builddir)/meta/uninstalled-env \ guild compile --target="$(host)" $(GUILE_WARNINGS) \ + -L "$(abs_srcdir)" -L "$(abs_builddir)" \ + -L "$(abs_top_srcdir)/guile-readline" \ -o "ice-9/psyntax-pp.go" "$(srcdir)/ice-9/psyntax.scm" SCHEME_LANG_SOURCES = \ |