From df03e7a60136aef8e804b1ee90c5fdf99c38713b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 7 Mar 2022 22:38:23 +0200 Subject: gnu: libjpeg-turbo: Fix cross-compiling to riscv64-linux. * gnu/packages/image.scm (libjpeg-turbo)[arguments]: When cross-compiling to riscv64-linux correctly set CMAKE_SYSTEM_PROCESSOR. --- gnu/packages/image.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index b9c780fa69..2feec742a2 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -8,7 +8,7 @@ ;;; Copyright © 2015 Amirouche Boubekki ;;; Copyright © 2014, 2017 John Darrington ;;; Copyright © 2016, 2017, 2018, 2020 Leo Famulari -;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner +;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice ;;; Copyright © 2016 Eric Bavier ;;; Copyright © 2016, 2017, 2020, 2021 Arun Isaac @@ -1691,6 +1691,8 @@ (define-public libjpeg-turbo ;; 32-bit and 64-bit ((string-prefix? "powerpc" target) `("-DCMAKE_SYSTEM_PROCESSOR=powerpc")) + ((string-prefix? "riscv64" target) + `("-DCMAKE_SYSTEM_PROCESSOR=riscv64")) (else '())) '()))) ,@(if (%current-target-system) -- cgit v1.2.3