summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-09-02 17:31:15 +0200
committerAlejandro Colomar <alx@kernel.org>2023-10-20 21:05:33 +0200
commitd73f480ddc47acfa7bb71587c703f741e46f1033 (patch)
treef7d0ca418592c97b9c570da5e16b23d99fc700bc
parentb3652d8a324ddf19bd8b7f765aecaabc49c3c07e (diff)
autogen.sh: Prepare CFLAGS before ./configure
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-xautogen.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index eb30a9a1..c431f6ad 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,8 +2,12 @@
autoreconf -v -f --install "$(dirname "$0")" || exit 1
+CFLAGS="-O2"
+CFLAGS="$CFLAGS -Wall"
+CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
+
"$(dirname "$0")"/configure \
- CFLAGS="-O2 -Wall -Werror=implicit-function-declaration" \
+ CFLAGS="$CFLAGS" \
--enable-lastlog \
--enable-man \
--enable-maintainer-mode \