me
/
guix
Archived
1
0
Fork 0

gnu: libjxr: Fix cross-compilation.

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

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
master
Z572 2023-03-25 12:07:01 +08:00 committed by 宋文武
parent 1d0158ab90
commit 2cf71e725d
No known key found for this signature in database
GPG Key ID: D415BF253B515976
1 changed files with 3 additions and 2 deletions

View File

@ -35,6 +35,7 @@
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com> ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
;;; Copyright © 2022 ( <paren@disroot.org> ;;; Copyright © 2022 ( <paren@disroot.org>
;;; Copyright © 2022-2023 Bruno Victal <mirai@makinata.eu> ;;; Copyright © 2022-2023 Bruno Victal <mirai@makinata.eu>
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -458,7 +459,7 @@ lossless JPEG manipulations such as rotation, scaling or cropping:
(lambda _ (lambda _
;; The Makefile uses optimization level 1, so the same ;; The Makefile uses optimization level 1, so the same
;; level is used here for consistency. ;; level is used here for consistency.
(invoke "gcc" "-shared" "-fPIC" "-O" (invoke ,(cc-for-target) "-shared" "-fPIC" "-O"
;; Common files. ;; Common files.
"adapthuff.o" "image.o" "strcodec.o" "strPredQuant.o" "adapthuff.o" "image.o" "strcodec.o" "strPredQuant.o"
"strTransform.o" "perfTimerANSI.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" "encode.o" "segenc.o" "strenc.o" "strFwdTransform.o"
"strPredQuantEnc.o" "strPredQuantEnc.o"
"-o" "libjpegxr.so") "-o" "libjpegxr.so")
(invoke "gcc" "-shared" "-fPIC" "-O" (invoke ,(cc-for-target) "-shared" "-fPIC" "-O"
;; Glue files. ;; Glue files.
"JXRGlue.o" "JXRMeta.o" "JXRGluePFC.o" "JXRGlueJxr.o" "JXRGlue.o" "JXRMeta.o" "JXRGluePFC.o" "JXRGlueJxr.o"
;; Test files. ;; Test files.