Skip to content

configure.ac: move -mbranch-protection to CPPFLAGS

In automake, as opposed to usual make rules, CPPFLAGS are the flags only forwarded to the compiler whereas CFLAGS and CXXFLAGS are forwarded both to the compiler and to the linker commands.

Since AX_CHECK_COMPILE_FLAG is used, the linker is not tested and the argument is actually not used by the linker, leading to the following warning every time a target is linked:

clang-14: warning: argument unused during compilation: '-mbranch-protection=standard' [-Wunused-command-line-argument]

Merge request reports

Loading