diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2025-09-14 12:43:55 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2025-09-14 14:30:45 +0300 |
| commit | 5f8ceb7115f9f8e1f942472b19e0a2ae39b79619 (patch) | |
| tree | a3d6cd9f6ccf5218af93b8d010b2bedb060f7653 /gnu | |
| parent | 5bd13a835b27abf4660dceb8f3de8cf62e704c11 (diff) | |
gnu: librsvg: Fix cross-compiling on some architectures.
Fixes guix/guix#2675.
* gnu/packages/gnome.scm (librsvg)[arguments]: Adjust the configure-flags
when cross-compiling to also set the RUST_TARGET.
Change-Id: Iaab1f7c01b4204d4cd3e12fd64f2260b4b3e4b10
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/gnome.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index ead7f244e05..7f211addc61 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3660,7 +3660,14 @@ for dealing with different structured file formats.") "--build=" #$(nix-system->gnu-triplet (%current-system))) (string-append - "--host=" #$(%current-target-system))) + "--host=" #$(%current-target-system)) + ;; This is needed when cross-compiling for some + ;; architectures as autoconf and rust disagree about + ;; the target triplet. + (string-append "RUST_TARGET=" + #$(platform-rust-target + (lookup-platform-by-target + (%current-target-system))))) #~("--enable-vala"))) #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) |
