[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/33: gnu: http-parser: Fix cross-compilation.
From: |
guix-commits |
Subject: |
08/33: gnu: http-parser: Fix cross-compilation. |
Date: |
Tue, 24 Sep 2019 02:17:47 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-next
in repository guix.
commit 078784ce7c1ac5ed6483a00712b6c6badac8b2c9
Author: Mathieu Othacehe <address@hidden>
Date: Mon Jul 1 15:31:48 2019 +0200
gnu: http-parser: Fix cross-compilation.
* gnu/packages/web.scm (http-parser)[arguments]: Set CC and AR variables in
Makefile in order to fix cross-compilation.
---
gnu/packages/web.scm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 5b1f60c..b415a14 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -35,6 +35,7 @@
;;; Copyright © 2019 Alex Griffin <address@hidden>
;;; Copyright © 2019 Hartmut Goebel <address@hidden>
;;; Copyright © 2019 Jakob L. Kreuze <address@hidden>
+;;; Copyright © 2019 Mathieu Othacehe <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -5243,10 +5244,22 @@ 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"
+ ,@(if (%current-target-system)
+ '()
+ '("CC=gcc")))
#:phases
(modify-phases %standard-phases
- (delete 'configure))))
+ ,@(if (%current-target-system)
+ '((replace 'configure
+ (lambda* (#:key target #:allow-other-keys)
+ (substitute* (find-files "." "Makefile")
+ (("CC\\?=.*$")
+ (string-append "CC=" target "-gcc\n"))
+ (("AR\\?=.*$")
+ (string-append "AR=" target "-ar\n")))
+ #t)))
+ '((delete 'configure))))))
(synopsis "HTTP request/response parser for C")
(description "This is a parser for HTTP messages written in C. It parses
both requests and responses. The parser is designed to be used in
- branch core-updates-next updated (567cca2 -> 647cfcf), guix-commits, 2019/09/24
- 01/33: gnu: perl: Fix cross-compilation., guix-commits, 2019/09/24
- 03/33: gnu: tcl: Fix cross-compilation., guix-commits, 2019/09/24
- 04/33: gnu: tk: Fix cross-compilation., guix-commits, 2019/09/24
- 02/33: gnu: python: Fix cross compilation., guix-commits, 2019/09/24
- 06/33: gnu: xorg: Fix cross-compilation of multiple packages., guix-commits, 2019/09/24
- 05/33: gnu: libxslt: Fix cross-compilation., guix-commits, 2019/09/24
- 08/33: gnu: http-parser: Fix cross-compilation.,
guix-commits <=
- 09/33: gnu: libgit2: Fix cross compilation., guix-commits, 2019/09/24
- 13/33: gnu: xmlto: Fix cross-compilation., guix-commits, 2019/09/24
- 10/33: gnu: ath9k-htc-firmware: Fix cross compilation., guix-commits, 2019/09/24
- 12/33: gnu: help2man: Fix cross-compilation., guix-commits, 2019/09/24
- 24/33: gnu: indent: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 23/33: gnu: libpaper: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 27/33: gnu: lvm2: Fix cross-compilation., guix-commits, 2019/09/24
- 07/33: gnu: python: Further cross-compilation fixes., guix-commits, 2019/09/24
- 33/33: gnu: libtool: Fix cross-compilation., guix-commits, 2019/09/24
- 21/33: gnu: guile-xcb: Fix cross-compilation., guix-commits, 2019/09/24