1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: asco: Fix build with gcc-14.

* gnu/packages/engineering.scm (asco): Fix build with gcc-14.
[arguments]<#:phases>: Add "relax-gcc-14-strictness" phase.

Change-Id: I6943dc730013cf22a277ed87de422de52b8aece0
This commit is contained in:
Artyom V. Poptsov
2025-10-31 20:01:44 +03:00
parent dc256a2d68
commit 08971b6956

View File

@@ -2257,6 +2257,15 @@ and a fallback for environments without libc for Zydis.")
#:phases
(modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'relax-gcc-14-strictness
(lambda _
(substitute* (find-files "." "Makefile")
(("CFLAGS = (.*)$" all options)
(string-append "CFLAGS = "
" -Wno-error=incompatible-pointer-types"
" -Wno-error=implicit-function-declaration"
" "
options)))))
(add-before 'build 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(let ((coreutils (assoc-ref inputs "coreutils-minimal")))