emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62431: closed ([PATCH] gnu: libjxr: fix cross-build.)


From: GNU bug Tracking System
Subject: bug#62431: closed ([PATCH] gnu: libjxr: fix cross-build.)
Date: Mon, 03 Apr 2023 10:27:01 +0000

Your message dated Mon, 03 Apr 2023 18:27:15 +0800
with message-id <87cz4lb6rg.fsf@envs.net>
and subject line Re: bug#62431: [PATCH] gnu: libjxr: fix cross-build.
has caused the debbugs.gnu.org bug report #62431,
regarding [PATCH] gnu: libjxr: fix cross-build.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
62431: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62431
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: libjxr: fix cross-build. Date: Sat, 25 Mar 2023 12:07:01 +0800
* gnu/packages/image.scm (libjxr): fix cross-build.
[arguments]:<#:phases>:build-shared-library: use cc-for-target replace "gcc"
---
 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 @@ (define-public libjxr
            (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 @@ (define-public libjxr
                      "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.
-- 
2.39.2




--- End Message ---
--- Begin Message --- Subject: Re: bug#62431: [PATCH] gnu: libjxr: fix cross-build. Date: Mon, 03 Apr 2023 18:27:15 +0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Z572 <873216071@qq.com> writes:

> * gnu/packages/image.scm (libjxr): fix cross-build.
> [arguments]:<#:phases>:build-shared-library: use cc-for-target replace "gcc"

Pushed with commit message change:

    gnu: libjxr: Fix cross-compilation.
    
    * gnu/packages/image.scm (libjxr)[arguments]: Use cc-for-target.

Thank you!


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]