Files
shadow/autogen.sh
Alejandro Colomar a6d795bac5 autogen.sh: CFLAGS: Add -Werror=implicit-function-declaration
This is not just a style issue.  This should be a hard error, and never
compile.  ISO C89 already had this feature as deprecated.  ISO C99
removed this deprecated feature, for good reasons.  If we compile
ignoring this warning, shadow is not going to behave well.

Cc: Sam James <sam@gentoo.org>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-10-20 21:05:33 +02:00

14 lines
285 B
Bash
Executable File

#! /bin/sh
autoreconf -v -f --install "$(dirname "$0")" || exit 1
"$(dirname "$0")"/configure \
CFLAGS="-O2 -Wall -Werror=implicit-function-declaration" \
--enable-lastlog \
--enable-man \
--enable-maintainer-mode \
--enable-shared \
--without-libpam \
--with-selinux \
"$@"