Browse Source

Drop -ansi from CXXFLAGS because it is actually a synonym for enforcing -std=c++98.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 133b3127ab)
v3.5.13-sru
Slávek Banko 6 months ago
parent
commit
f078739d97
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 2
      acinclude.m4.in

2
acinclude.m4.in

@ -3509,7 +3509,7 @@ AC_DEFUN([AC_CHECK_COMPILERS],
case $host in
*-*-linux-gnu)
CFLAGS="-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
CXXFLAGS="-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
;;

Loading…
Cancel
Save