summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-07-14 15:39:46 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:53 +0200
commit695a2e024d7ab8758840dd49440f49f26c1f5c2e (patch)
tree462a282b92a900be097aa7c23ffdeb1e9528054a
parent5fa5902e9e35ef2b8b16208b79841f3ab8b715d3 (diff)
gnu: fastboot: Fix build.
* gnu/packages/android.scm (fastboot)[arguments]<#:phases>: Add 'relax-gcc-14-strictness to set CXXFLAGS. Change-Id: Ie74aad16d308e6c2a5914597e779259c8a2cd6f9
-rw-r--r--gnu/packages/android.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 7cb7814965..20ed472292 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -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"))