GNU bug report logs -
#62431
[PATCH] gnu: libjxr: fix cross-build.
Previous Next
Reported by: Z572 <873216071 <at> qq.com>
Date: Sat, 25 Mar 2023 04:33:02 UTC
Severity: normal
Tags: patch
Done: 宋文武 <iyzsong <at> envs.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62431 in the body.
You can then email your comments to 62431 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#62431
; Package
guix-patches
.
(Sat, 25 Mar 2023 04:33:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Z572 <873216071 <at> qq.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 25 Mar 2023 04:33:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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 <at> gmail.com>
;;; Copyright © 2022 ( <paren <at> disroot.org>
;;; Copyright © 2022-2023 Bruno Victal <mirai <at> makinata.eu>
+;;; Copyright © 2023 Zheng Junjie <873216071 <at> 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
Reply sent
to
宋文武 <iyzsong <at> envs.net>
:
You have taken responsibility.
(Mon, 03 Apr 2023 10:27:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Z572 <873216071 <at> qq.com>
:
bug acknowledged by developer.
(Mon, 03 Apr 2023 10:27:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 62431-done <at> debbugs.gnu.org (full text, mbox):
Z572 <873216071 <at> 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!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 01 May 2023 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 53 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.