[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH 09/31] gnu: http-parser: Fix cross-compilation.
From: |
Marius Bakke |
Subject: |
[bug#36477] [PATCH 09/31] gnu: http-parser: Fix cross-compilation. |
Date: |
Mon, 08 Jul 2019 19:46:22 +0200 |
User-agent: |
Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) |
Mathieu Othacehe <address@hidden> writes:
> * gnu/packages/web.scm (http-parser)[arguments]: Set CC and AR variables in
> Makefile in order to fix cross-compilation.
[...]
> @@ -5171,10 +5172,18 @@ into your tests. It automatically starts up a HTTP
> server in a separate thread
> #:make-flags
> (list (string-append "PREFIX="
> (assoc-ref %outputs "out"))
> - "CC=gcc" "library")
> + "library")
> #:phases
> (modify-phases %standard-phases
> - (delete 'configure))))
> + (replace 'configure
> + (lambda* (#:key target #:allow-other-keys)
> + (when ,(%current-target-system)
> + (substitute* (find-files "." "Makefile")
> + (("CC\\?=.*$")
> + (string-append "CC=" target "-gcc\n"))
> + (("AR\\?=.*$")
> + (string-append "AR=" target "-ar\n"))))
> + #t)))))
I would prefer to splice in this phase instead of adding a noop phase to
the native build. LGTM otherwise.
(so I guess CC=gcc was not needed for native builds?)
signature.asc
Description: PGP signature
[bug#36477] [PATCH 14/31] gnu: ath9k-htc-firmware: Fix cross compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 10/31] gnu: openssl: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 12/31] gnu: cmake: Extend CMAKE_PREFIX_PATH to non-native inputs., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 07/31] gnu: libgpg-error: Fix cross compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 04/31] gnu: tk: Fix cross-compilation., Mathieu Othacehe, 2019/07/08