]> git.lyx.org Git - lyx.git/commitdiff
Do not put C++-only options in AM_CPPFLAGS
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Apr 2020 10:24:44 +0000 (12:24 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Apr 2020 10:24:44 +0000 (12:24 +0200)
config/lyxinclude.m4

index 9fe42e884747490912f170b7145d670a4feade83..f0e2ad1c841fa27f111a0cf531ca6bf55235517f 100644 (file)
@@ -409,7 +409,8 @@ if test x$GXX = xyes; then
   dnl Warnings are for preprocessor too
   if test x$enable_warnings = xyes ; then
       case $gxx_version in
-         9.*) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra -Wno-deprecated-copy";;
+         9.*) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra"
+              AM_CXXFLAGS="$AM_CXXFLAGS  -Wno-deprecated-copy";;
          *) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra";;
       esac
     fi