diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2025-01-03 12:04:54 +0100 |
---|---|---|
committer | Zheng Junjie <z572@z572.online> | 2025-06-22 16:32:56 +0800 |
commit | 357a6a31cf548948644f2454e5f6d2f849dda523 (patch) | |
tree | c5fb43c8101ae32b919199590bbd4b991695804c | |
parent | 06539b16071397902da26ca3342ce1ea794c2789 (diff) |
gnu: 389-ds-base: Fix build with gcc-14.
* gnu/packages/openldap.scm (389-ds-base)[arguments]: Add CFLAGS to #:configure-flags
to relax gcc-14's strictness.
Change-Id: I54510c0d0d0f9032f4f5043053b0282e0a4ffb9e
Modified-by: Zheng Junjie <z572@z572.online>
-rw-r--r-- | gnu/packages/openldap.scm | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm index 8d3c94e8ae..0653bc6992 100644 --- a/gnu/packages/openldap.scm +++ b/gnu/packages/openldap.scm @@ -244,15 +244,19 @@ servers from Python programs.") ,@%default-gnu-imported-modules) #:disallowed-references (list httpd) #:configure-flags - #~(list "--enable-cmocka" - (string-append "--with-db=" - #$(this-package-input "bdb")) - (string-append "--with-netsnmp=" - #$(this-package-input "net-snmp")) - (string-append "--with-selinux=" - #$(this-package-input "libselinux")) - "--localstatedir=/var" - "--with-instconfigdir=/etc/dirsrv") + #~(list + ;; Relax gcc-14's strictness. + (string-append "CFLAGS=-g -O2" + " -Wno-error=incompatible-pointer-types") + "--enable-cmocka" + (string-append "--with-db=" + #$(this-package-input "bdb")) + (string-append "--with-netsnmp=" + #$(this-package-input "net-snmp")) + (string-append "--with-selinux=" + #$(this-package-input "libselinux")) + "--localstatedir=/var" + "--with-instconfigdir=/etc/dirsrv") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-references |