diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-09-02 17:31:15 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-10-20 21:05:33 +0200 |
commit | d73f480ddc47acfa7bb71587c703f741e46f1033 (patch) | |
tree | f7d0ca418592c97b9c570da5e16b23d99fc700bc | |
parent | b3652d8a324ddf19bd8b7f765aecaabc49c3c07e (diff) |
autogen.sh: Prepare CFLAGS before ./configure
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 \ |