unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62431] [PATCH] gnu: libjxr: fix cross-build.
@ 2023-03-25  4:07 Z572 via Guix-patches via
  2023-04-03 10:27 ` bug#62431: " 宋文武 via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: Z572 via Guix-patches via @ 2023-03-25  4:07 UTC (permalink / raw)
  To: 62431

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1612 bytes --]

* 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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#62431: [PATCH] gnu: libjxr: fix cross-build.
  2023-03-25  4:07 [bug#62431] [PATCH] gnu: libjxr: fix cross-build Z572 via Guix-patches via
@ 2023-04-03 10:27 ` 宋文武 via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 via Guix-patches via @ 2023-04-03 10:27 UTC (permalink / raw)
  To: Z572; +Cc: 62431-done

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!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-03 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-25  4:07 [bug#62431] [PATCH] gnu: libjxr: fix cross-build Z572 via Guix-patches via
2023-04-03 10:27 ` bug#62431: " 宋文武 via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).