guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Support cross compilation


From: Andy Wingo
Subject: Re: [PATCH] Support cross compilation
Date: Tue, 09 Mar 2021 21:15:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi :)

Which library is this for?  It doesn't appear to be guile itself.

Andy

On Sun 14 Feb 2021 10:16, Christopher Baines <mail@cbaines.net> writes:

> With these changes, I was able to cross-compile guile-lib to the GNU
> Hurd, and use part of the library at least.
>
> * configure.ac: Set GUILE_TARGET when cross compiling.
> * am/guile.mk: Pass GUILE_TARGET to guild compile.
> ---
>  am/guile.mk  | 2 +-
>  configure.ac | 4 ++++
>  2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/am/guile.mk b/am/guile.mk
> index 3adfc4f..f08e58d 100644
> --- a/am/guile.mk
> +++ b/am/guile.mk
> @@ -47,4 +47,4 @@ GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch 
> -Wformat
>  SUFFIXES = .scm .go
>  .scm.go:
>       $(AM_V_GEN)$(top_builddir)/pre-inst-env \
> -     guild compile $(GUILE_WARNINGS) -o "$@" "$<"
> +     guild compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
> diff --git a/configure.ac b/configure.ac
> index 07be121..0aa812f 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -67,6 +67,10 @@ GUILE_GLOBAL_SITE_DIR
>  GUILE_SITE_CCACHE_DIR
>  GUILE_FLAGS
>  
> +if test \"$cross_compiling\" != no; then
> +   GUILE_TARGET=\"--target=$host_alias\"
> +   AC_SUBST([GUILE_TARGET])
> +fi
>  
>  AC_ARG_WITH(
>    [guile-site],



reply via email to

[Prev in Thread] Current Thread [Next in Thread]