[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: libjxr: Fix cross-compilation.
From: |
guix-commits |
Subject: |
branch master updated: gnu: libjxr: Fix cross-compilation. |
Date: |
Mon, 03 Apr 2023 06:25:15 -0400 |
This is an automated email from the git hooks/post-receive script.
iyzsong pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 2cf71e725d gnu: libjxr: Fix cross-compilation.
2cf71e725d is described below
commit 2cf71e725d55bc5bf1ad663b7c696516299cc8a7
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 0709c793b1..0da990e63a 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: libjxr: Fix cross-compilation.,
guix-commits <=