[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH 26/31] gnu: tcsh: Fix cross-compilation.
From: |
Mathieu Othacehe |
Subject: |
[bug#36477] [PATCH 26/31] gnu: tcsh: Fix cross-compilation. |
Date: |
Thu, 25 Jul 2019 17:23:27 +0200 |
User-agent: |
mu4e 1.2.0; emacs 26.2 |
>> @@ -356,6 +357,14 @@ written by Paul Haahr and Byron Rakitzis.")
>> (arguments
>> `(#:phases
>> (modify-phases %standard-phases
>> + ,@(if (%current-target-system)
>> + '((add-before 'configure 'set-cross-cc
>> + (lambda _
>> + (substitute* "configure"
>> + (("CC_FOR_GETHOST=\"cc\"")
>> + "CC_FOR_GETHOST=\"gcc\""))
>> + #t)))
>> + '())
>
> Actually, can we pass this in #:configure-flags instead? Maybe even
> also for the native build?
Sadly I think we cannot. The problematic piece is:
--8<---------------cut here---------------start------------->8---
dnl Require build CC to create gethost helper when cross building
if test "x${cross_compiling}" = xyes ; then
CC_FOR_GETHOST="cc"
else
CC_FOR_GETHOST="\$(CC)"
fi
AC_SUBST(CC_FOR_GETHOST)
--8<---------------cut here---------------end--------------->8---
CC_FOR_GETHOST cannot be overwritten by a configure-flag.
Mathieu
- [bug#36477] [PATCH 22/31] gnu: cyrus-sasl: Fix cross-compilation., (continued)
- [bug#36477] [PATCH 22/31] gnu: cyrus-sasl: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 24/31] gnu: xmlto: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 25/31] gnu: libarchive: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 20/31] gnu: libsamplerate: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 30/31] gnu: icu4c: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 26/31] gnu: tcsh: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 21/31] gnu: mit-krb5: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 17/31] gnu: texinfo-5: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 28/31] gnu: mkfontdir: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 27/31] gnu: pkg-config: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 29/31] gnu: alsa-utils: Fix cross-compilation., Mathieu Othacehe, 2019/07/08