Support cross-compilation
configure.ac
10 | 10 | GUILE_PROGS | |
11 | 11 | GUILE_SITE_DIR | |
12 | 12 | ||
13 | + | if test "$cross_compiling" != no; then | |
14 | + | GUILE_TARGET="--target=$host_alias" | |
15 | + | AC_SUBST([GUILE_TARGET]) | |
16 | + | fi | |
17 | + | ||
13 | 18 | AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) | |
14 | 19 | AC_CONFIG_FILES(Makefile) | |
15 | 20 | AC_PROG_AWK |
guile.am
19 | 19 | GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat | |
20 | 20 | SUFFIXES = .scm .go | |
21 | 21 | .scm.go: | |
22 | - | $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILD) compile $(GUILE_WARNINGS) -o "$@" "$<" | |
22 | + | $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILD) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<" |