From: Michael Tremer Date: Wed, 9 Oct 2024 15:50:15 +0000 (+0000) Subject: configure: Remove option to enable the static analyzer X-Git-Tag: 0.9.30~1103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b7e74d00b4b9b1872f2f26a2056035aa0c0edba;p=pakfire.git configure: Remove option to enable the static analyzer This is not compatible with Clang. Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 75feeb1a1..b43c3b0ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -182,8 +182,7 @@ libpakfire_parser_la_SOURCES = \ libpakfire_parser_la_CFLAGS = \ $(AM_CFLAGS) \ - $(JSON_C_CFLAGS) \ - -fno-analyzer + $(JSON_C_CFLAGS) libpakfire_parser_la_CPPFLAGS = \ $(AM_CPPFLAGS) \ @@ -913,9 +912,6 @@ noinst_PROGRAMS += \ tests_stub_root_command_SOURCES = \ tests/stub/command.c -tests_stub_root_command_CFLAGS = \ - -fno-analyzer - tests_stub_root_command_LDFLAGS = \ -all-static diff --git a/configure.ac b/configure.ac index 95db656a6..43a213e6a 100644 --- a/configure.ac +++ b/configure.ac @@ -144,14 +144,6 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\ -fno-common \ ]) -# Enable -fanalyzer if requested -AC_ARG_ENABLE([analyzer], - AS_HELP_STRING([--enable-analyzer], [enable static analyzer (-fanalyzer) @<:@default=disabled@:>@]), - [], [enable_analyzer=no]) -AS_IF([test "x$enable_analyzer" = "xyes"], - CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [-fanalyzer]) -) - # Enable -fno-semantic-interposition (if available) CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [-fno-semantic-interposition]) CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [-fno-semantic-interposition])