[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
31/244: gnu: libjxr: Fix cross-compilation.
From: |
guix-commits |
Subject: |
31/244: gnu: libjxr: Fix cross-compilation. |
Date: |
Wed, 12 Apr 2023 08:47:15 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit 937b258879d934f012dac4825aeaf925884d193c
Author: Z572 <873216071@qq.com>
AuthorDate: Sat Mar 25 12:07:01 2023 +0800
gnu: libjxr: Fix cross-compilation.
* gnu/packages/image.scm (libjxr)[arguments]: Use cc-for-target.
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
---
gnu/packages/image.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 4c0f0ae6f5..47a48febc6 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -35,6 +35,7 @@
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
;;; Copyright © 2022 ( <paren@disroot.org>
;;; Copyright © 2022-2023 Bruno Victal <mirai@makinata.eu>
+;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -458,7 +459,7 @@ lossless JPEG manipulations such as rotation, scaling or
cropping:
(lambda _
;; The Makefile uses optimization level 1, so the same
;; level is used here for consistency.
- (invoke "gcc" "-shared" "-fPIC" "-O"
+ (invoke ,(cc-for-target) "-shared" "-fPIC" "-O"
;; Common files.
"adapthuff.o" "image.o" "strcodec.o" "strPredQuant.o"
"strTransform.o" "perfTimerANSI.o"
@@ -469,7 +470,7 @@ lossless JPEG manipulations such as rotation, scaling or
cropping:
"encode.o" "segenc.o" "strenc.o" "strFwdTransform.o"
"strPredQuantEnc.o"
"-o" "libjpegxr.so")
- (invoke "gcc" "-shared" "-fPIC" "-O"
+ (invoke ,(cc-for-target) "-shared" "-fPIC" "-O"
;; Glue files.
"JXRGlue.o" "JXRMeta.o" "JXRGluePFC.o" "JXRGlueJxr.o"
;; Test files.
- 26/244: gnu: emacs-ement: Update to 0.8.1., (continued)
- 26/244: gnu: emacs-ement: Update to 0.8.1., guix-commits, 2023/04/12
- 15/244: gnu: Add ruby-enumerable-statistics., guix-commits, 2023/04/12
- 10/244: services: replace bare serializers with (serializer ...), guix-commits, 2023/04/12
- 12/244: services: mpd: Use proper records for user and group fields., guix-commits, 2023/04/12
- 14/244: gnu: Add mairix., guix-commits, 2023/04/12
- 17/244: gnu: Add youplot., guix-commits, 2023/04/12
- 19/244: gnu: ytfzf: Replace YOUTUBE-DL by YT-DLP., guix-commits, 2023/04/12
- 20/244: gnu: Add font-chivo., guix-commits, 2023/04/12
- 23/244: gnu: python-hy: Update to 0.26.0., guix-commits, 2023/04/12
- 24/244: gnu: python-hy: Report version., guix-commits, 2023/04/12
- 31/244: gnu: libjxr: Fix cross-compilation.,
guix-commits <=
- 30/244: services: xvnc: Do not create a regular HOME directory for xvnc user., guix-commits, 2023/04/12
- 37/244: gnu: bambam: Update to 1.2.1., guix-commits, 2023/04/12
- 34/244: gnu: Add dool., guix-commits, 2023/04/12
- 33/244: gnu: a2ps: Improve package style., guix-commits, 2023/04/12
- 38/244: gnu: thermald: Update to 2.5.2., guix-commits, 2023/04/12
- 44/244: gnu: emacs-org: Update to 9.6.3., guix-commits, 2023/04/12
- 40/244: gnu: qpwgraph: Update to 0.4.2., guix-commits, 2023/04/12
- 41/244: gnu: uwufetch: Update to 2.1., guix-commits, 2023/04/12
- 22/244: gnu: endless-sky: Update to 0.10.0., guix-commits, 2023/04/12
- 53/244: doc: Add a reference to a page explaining consensus decision making., guix-commits, 2023/04/12