mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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>
This commit is contained in:
parent
a447a2f5b4
commit
c2010b2f0b
1 changed files with 7 additions and 6 deletions
|
@ -238,6 +238,7 @@ (define-module (gnu packages gnome)
|
|||
#:use-module (guix git-download)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix platform)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (ice-9 match)
|
||||
|
@ -3593,12 +3594,12 @@ (define-public librsvg
|
|||
;; In lieu of #:make-flags
|
||||
(setenv "CC" #$(cc-for-target))
|
||||
(setenv "PKG_CONFIG" #$(pkg-config-for-target))
|
||||
(when #$(%current-target-system)
|
||||
(setenv "RUST_TARGET"
|
||||
(string-replace
|
||||
#$(%current-target-system)
|
||||
"-unknown-linux-gnu"
|
||||
(string-index #$(%current-target-system) #\-))))
|
||||
#$@(if (%current-target-system)
|
||||
#~((setenv "RUST_TARGET"
|
||||
#$(platform-rust-target
|
||||
(lookup-platform-by-target
|
||||
(%current-target-system)))))
|
||||
#~())
|
||||
;; Something about the build environment resists building
|
||||
;; successfully with the '--locked' flag.
|
||||
(substitute* '("Makefile.am" "Makefile.in")
|
||||
|
|
Loading…
Reference in a new issue