gnu: tcp-wrappers: Fix build with gcc-14.

* gnu/packages/networking.scm (tcp-wrappers)[arguments]<#:phases>{build}:
Add more flags to the gcc call.

Change-Id: I5a06b00a4e51b5511f8fc8df9dedf803709189f0
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Charles Roelli 2025-07-30 15:16:59 +02:00 committed by Andreas Enge
parent e5a1fa55e8
commit b3f5af88e8
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -1412,7 +1412,13 @@ or server shell scripts with network connections.")
(lambda _
(chmod "." #o755)
;; Upstream doesn't generate a shared library. So we have to do it.
(setenv "CC" "gcc -fno-builtin -fPIC")
(setenv "CC" (string-join '("gcc"
"-fno-builtin"
"-fPIC"
"-Wno-implicit-function-declaration"
"-Wno-implicit-int"
"-Wno-return-mismatch")
" "))
(substitute* "Makefile"
(("^(all[^\n]*)" line) (string-append line " libwrap.so\n
libwrap.so: $(LIB_OBJ)\n