gnu: appimage-type2-runtime: Fix cross-compiling.

* gnu/packages/appimage.scm (appimage-type2-runtime)[arguments]<#:make-flags>: Use
CC-FOR-TARGET and add "-Wno-int-conversion".

Change-Id: I5dd9c6cb81e30713f17d474e9a5e11817db7158e
Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
This commit is contained in:
Brian Kubisiak 2025-01-07 14:07:16 -08:00 committed by Zheng Junjie
parent b7dbb5f591
commit 9fb7b9ef68
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -49,11 +49,13 @@ (define-public appimage-type2-runtime
(list
#:make-flags
#~(list "-Csrc/runtime" "runtime-fuse3"
(string-append "CC=" #$(cc-for-target))
(string-append
"CFLAGS=" "-I" #$(this-package-input "fuse") "/include/fuse/"
" -DGIT_COMMIT='\"" "guix-" #$version "\"'"
" -D_FILE_OFFSET_BITS=64"
" -static"))
" -static"
" -Wno-int-conversion"))
#:modules
`((guix build gnu-build-system)
(guix build utils)