2007-10-07 22:36:51 +08:00
|
|
|
#! /bin/sh
|
2010-08-30 00:42:25 +08:00
|
|
|
|
2023-09-02 20:01:58 +08:00
|
|
|
autoreconf -v -f --install "$(dirname "$0")" || exit 1
|
2010-08-30 00:42:25 +08:00
|
|
|
|
2023-09-02 23:31:15 +08:00
|
|
|
CFLAGS="-O2"
|
|
|
|
CFLAGS="$CFLAGS -Wall"
|
2023-09-02 19:40:12 +08:00
|
|
|
CFLAGS="$CFLAGS -Wextra"
|
2023-09-02 23:31:15 +08:00
|
|
|
CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
|
2024-01-23 05:25:34 +08:00
|
|
|
CFLAGS="$CFLAGS -Werror=implicit-int"
|
|
|
|
CFLAGS="$CFLAGS -Werror=incompatible-pointer-types"
|
|
|
|
CFLAGS="$CFLAGS -Werror=int-conversion"
|
2023-09-02 21:59:08 +08:00
|
|
|
CFLAGS="$CFLAGS -Wno-expansion-to-defined"
|
2024-01-23 07:10:14 +08:00
|
|
|
CFLAGS="$CFLAGS -Wno-unknown-attributes"
|
2024-01-23 05:25:34 +08:00
|
|
|
CFLAGS="$CFLAGS -Wno-unknown-warning-option"
|
2023-09-02 23:31:15 +08:00
|
|
|
|
2023-09-02 20:01:58 +08:00
|
|
|
"$(dirname "$0")"/configure \
|
2023-09-02 23:31:15 +08:00
|
|
|
CFLAGS="$CFLAGS" \
|
2023-08-07 16:12:04 +08:00
|
|
|
--enable-lastlog \
|
2007-10-07 22:36:51 +08:00
|
|
|
--enable-man \
|
|
|
|
--enable-maintainer-mode \
|
2021-11-28 01:11:04 +08:00
|
|
|
--enable-shared \
|
2007-10-07 22:36:51 +08:00
|
|
|
--without-libpam \
|
|
|
|
--with-selinux \
|
|
|
|
"$@"
|