mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
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>
This commit is contained in:
parent
7af70efd76
commit
9142c50c6d
1 changed files with 10 additions and 1 deletions
|
@ -2606,7 +2606,16 @@ (define-public libjxl
|
|||
"-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
|
||||
|
|
Loading…
Reference in a new issue