]> git.ipfire.org Git - thirdparty/grub.git/commit
configure: Fix building with clang
authorDarren Kenny <darren.kenny@oracle.com>
Fri, 21 Oct 2022 13:33:00 +0000 (13:33 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 27 Oct 2022 14:19:24 +0000 (16:19 +0200)
commit30641d450181324dde9df3fb7f76435c10e4dc8d
treec3b7c0a2038852cbfed9999ca043a86b40359641
parent8505f73003d21fba556215dc7e0f7173a9b67c02
configure: Fix building with clang

Building the current code with clang and the latest gnulib fails due to
the use of a variable-length-array (vla) warning, which turns in to an
error due to the presence of the -Werror during the build.

The gnulib team stated that their code should not be built with -Werror.

At present, the only way to do this is for the complete code-base, by
using the --disable-werror option to configure.

Rather than doing this, and failing to gain any benefit that it provides,
instead, if building with clang, this patch makes it possible to specifically
not error on vlas, while retaining the -Werror functionality otherwise.

Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
configure.ac