diff options
author | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2023-12-26 20:43:18 +0800 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-04-02 16:19:16 +0300 |
commit | 9142c50c6db0e84b165d732b60693edf8fae500e (patch) | |
tree | 18c674441ba12dd6926ad38af9ec36ba94b3efa2 /gnu/packages | |
parent | 7af70efd7633b0d70091762cf43ce01a86176e8e (diff) |
gnu: libjxl: Fix build on riscv64-linux.
* gnu/packages/image.scm (libjxl)
[arguments]: Add fix-atomic phase when target riscv64-linux.
Change-Id: I442c668c3d52c241f0d405f51ea8d995bfefd3fd
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/image.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 6accf68ef0..58476c52a8 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -2606,7 +2606,16 @@ Format) file format decoder and encoder.") "-DJPEGXL_FORCE_SYSTEM_BROTLI=true" "-DJPEGXL_FORCE_SYSTEM_LCMS2=true" "-DJPEGXL_FORCE_SYSTEM_HWY=true" - "-DJPEGXL_BUNDLE_LIBPNG=false"))) + "-DJPEGXL_BUNDLE_LIBPNG=false") + ,@(if (target-riscv64?) + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-atomic + (lambda _ + (substitute* "lib/jxl/enc_xyb.cc" + (("#include \"lib/jxl/enc_xyb.h\"" a) + (string-append a "\n#include <atomic>"))))))) + '()))) (native-inputs (list asciidoc doxygen googletest pkg-config python)) (inputs |