summaryrefslogtreecommitdiff
path: root/am
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-11-23 15:29:18 +0100
committerLudovic Courtès <ludo@gnu.org>2011-11-23 15:29:18 +0100
commitf701287497d545061009ad572c69f86bb10d7a6a (patch)
treed1964a59cabb198ef9637a09b0aedc3ae5ea3135 /am
parent9447207f0c9a52d48b2de20b444405dfdd43d465 (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 'am')
-rw-r--r--am/guilec7
1 files changed, 5 insertions, 2 deletions
diff --git a/am/guilec b/am/guilec
index 9af9daf06..7634a9716 100644
--- a/am/guilec
+++ b/am/guilec
@@ -26,6 +26,9 @@ AM_V_GUILEC_0 = @echo " GUILEC" $@;
SUFFIXES = .scm .go
.scm.go:
- $(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) -o "$@" "$<"
+ guild compile --target="$(host)" $(GUILE_WARNINGS) \
+ -L "$(abs_srcdir)" -L "$(abs_builddir)" \
+ -L "$(abs_top_srcdir)/guile-readline" \
+ -o "$@" "$<"