build: Be cross-compilation-ready.
* Makefile.am (.scm.go): Pass `--target=$(host)'. * configure.ac: Use `AC_CANONICAL_HOST'.
This commit is contained in:
parent
48e8333d91
commit
73d9659697
|
@ -50,6 +50,7 @@ CLEANFILES = $(GOBJECTS) *.log
|
||||||
GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
|
GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
|
||||||
$(GUILD) compile -L "$(top_srcdir)" \
|
$(GUILD) compile -L "$(top_srcdir)" \
|
||||||
-Wformat -Wunbound-variable -Warity-mismatch \
|
-Wformat -Wunbound-variable -Warity-mismatch \
|
||||||
|
--target="$(host)" \
|
||||||
-o "$@" "$<"
|
-o "$@" "$<"
|
||||||
|
|
||||||
SUFFIXES = .go
|
SUFFIXES = .go
|
||||||
|
|
|
@ -14,6 +14,8 @@ AC_CONFIG_MACRO_DIR([m4])
|
||||||
guilemoduledir="${datarootdir}/guile/site/2.0"
|
guilemoduledir="${datarootdir}/guile/site/2.0"
|
||||||
AC_SUBST([guilemoduledir])
|
AC_SUBST([guilemoduledir])
|
||||||
|
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
PKG_CHECK_MODULES([GUILE], [guile-2.0])
|
PKG_CHECK_MODULES([GUILE], [guile-2.0])
|
||||||
AC_PATH_PROG([GUILE], [guile])
|
AC_PATH_PROG([GUILE], [guile])
|
||||||
AC_PATH_PROG([GUILD], [guild])
|
AC_PATH_PROG([GUILD], [guild])
|
||||||
|
|
Loading…
Reference in New Issue