me
/
guix
Archived
1
0
Fork 0

gnu: librsvg: Improve cross compiling.

* gnu/packages/gnome.scm (librsvg)[arguments]: Use platform-rust-target.

Change-Id: Ia81e13a8695f7b932255e5223b92d31fb0a88077
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
master
Zheng Junjie 2023-12-26 13:17:15 +02:00 committed by Efraim Flashner
parent a447a2f5b4
commit c2010b2f0b
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 7 additions and 6 deletions

View File

@ -238,6 +238,7 @@
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix platform)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (ice-9 match) #:use-module (ice-9 match)
@ -3593,12 +3594,12 @@ for dealing with different structured file formats.")
;; In lieu of #:make-flags ;; In lieu of #:make-flags
(setenv "CC" #$(cc-for-target)) (setenv "CC" #$(cc-for-target))
(setenv "PKG_CONFIG" #$(pkg-config-for-target)) (setenv "PKG_CONFIG" #$(pkg-config-for-target))
(when #$(%current-target-system) #$@(if (%current-target-system)
(setenv "RUST_TARGET" #~((setenv "RUST_TARGET"
(string-replace #$(platform-rust-target
#$(%current-target-system) (lookup-platform-by-target
"-unknown-linux-gnu" (%current-target-system)))))
(string-index #$(%current-target-system) #\-)))) #~())
;; Something about the build environment resists building ;; Something about the build environment resists building
;; successfully with the '--locked' flag. ;; successfully with the '--locked' flag.
(substitute* '("Makefile.am" "Makefile.in") (substitute* '("Makefile.am" "Makefile.in")