Commit c1ec8734 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

m4: fix c++ check for -f flags

Both gcc and clang generate warnings for unsupported -f$FLAG by
default, meaning that the previous implementation would consider
unsupported flags as supported (as a warning is not an error that
fails compilation).

The addition of -Werror treats warnings as errors, and will prevent
false-positives in terms of -f$FLAG support.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent acc58ecb
......@@ -48,7 +48,7 @@ AC_DEFUN([RDC_PROG_CXX_FLAGS_IFELSE],
as_ac_var=`echo "ac_cv_prog_cxx_flags_$1" | $as_tr_sh`
AC_CACHE_CHECK([if $CXX accepts $1], [$as_ac_var], [
eval "$as_ac_var=yes"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment