summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-07-14 18:05:41 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:53 +0200
commit55777833aef3df8aca919d9b4f20ec37f6cb3950 (patch)
tree2d2e06fe804f8742c78e632aeeae30cf5f861192
parent64231add184ad745c5bf047c008a34178abedffa (diff)
gnu: cdrtools: Fix build with gcc@14.
* gnu/packages/cdrom.scm (cdrtools)[arguments]<#:make-flags>: Add flags keeping warnings as non-errors, and a now needed "-fPIC". Change-Id: Ia545470546de36a1b55cfdd1d1c68eaf5c32b8c0
-rw-r--r--gnu/packages/cdrom.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 91becdef91..1b07544ad5 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -410,6 +410,14 @@ format, commonly used for VCDs or disks with subchannel data.")
(arguments
(list #:make-flags
#~(list "RM=rm" "LN=ln" "SYMLINK=ln -s"
+ (string-append
+ "CFLAGS="
+ ;; The following are needed to placate gcc@14.
+ "-Wno-error=implicit-int "
+ "-Wno-error=implicit-function-declaration "
+ ;; The following is probably there when CFLAGS are not
+ ;; defined, but needs to be set explicitly now.
+ "-g -O2 -fPIC")
"CONFIG_SHELL=sh"
(string-append "CCOM=" #$(cc-for-target))
"LINKMODE=dynamic"