gnu: fastboot: Fix build.

* gnu/packages/android.scm (fastboot)[arguments]<#:phases>:
Add 'relax-gcc-14-strictness to set CXXFLAGS.

Change-Id: Ie74aad16d308e6c2a5914597e779259c8a2cd6f9
This commit is contained in:
Andreas Enge 2025-07-14 15:39:46 +02:00
parent 5fa5902e9e
commit 695a2e024d
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -698,6 +698,13 @@ file system.")
(("libext4_utils_host") "libext4_utils_host libselinux libpcre")
(("\\$\\(shell git .*\\)") ,version))
#t))
(add-after 'patch-source 'relax-gcc-14-strictness
(lambda _
(setenv
"CXXFLAGS"
(string-append "-g -O2"
" -Wno-error=calloc-transposed-args"
" -Wno-error=format-truncation"))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))