[mapguide-commits] r8135 - branches/2.6/MgDev

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat May 17 06:50:02 PDT 2014


Author: jng
Date: 2014-05-17 06:50:02 -0700 (Sat, 17 May 2014)
New Revision: 8135

Modified:
   branches/2.6/MgDev/configure.in
Log:
Workaround for #2442. Suppress such warnings in the CXXFLAGS

Modified: branches/2.6/MgDev/configure.in
===================================================================
--- branches/2.6/MgDev/configure.in	2014-05-16 16:11:21 UTC (rev 8134)
+++ branches/2.6/MgDev/configure.in	2014-05-17 13:50:02 UTC (rev 8135)
@@ -176,28 +176,28 @@
         if test $enable_64bit = no; then
             AC_MSG_NOTICE([Using 32-bit CXXFLAGS])
             CXXFLAGS="-O2 -g -pipe -march=i686 -mtune=i686 -fno-use-cxa-atexit -fexceptions"
-            AC_SUBST(CXXFLAGS, ["-O2 -g -pipe -march=i686 -mtune=i686 -fno-use-cxa-atexit -fexceptions"])            
+            AC_SUBST(CXXFLAGS, ["-O2 -g -pipe -march=i686 -mtune=i686 -fno-use-cxa-atexit -fexceptions -Wno-write-strings"])            
         else
             #TODO: Review. i686 is not a valid march/mtune value for 64-bit compilation
             #TODO: Sticking -fPIC globally is probably a bit of a thermonuclear solution, but we
             # *absolutely* must be sure this flag is used when compiling static libraries
             AC_MSG_NOTICE([Using 64-bit CXXFLAGS])
             CXXFLAGS="-O2 -g -pipe -m64 -fPIC -fno-use-cxa-atexit -fexceptions"
-            AC_SUBST(CXXFLAGS, ["-O2 -g -pipe -m64 -fPIC -fno-use-cxa-atexit -fexceptions"])
+            AC_SUBST(CXXFLAGS, ["-O2 -g -pipe -m64 -fPIC -fno-use-cxa-atexit -fexceptions -Wno-write-strings"])
         fi
     else
         AC_MSG_NOTICE([this gcc version is not actively supported.])
         if test $enable_64bit = no; then
             AC_MSG_NOTICE([Using 32-bit CXXFLAGS])
             CXXFLAGS="-O2 -g -pipe -march=i686 -mtune=i686 -fno-use-cxa-atexit -fexceptions"
-            AC_SUBST(CXXFLAGS, ["-O2 -g -pipe -march=i686 -mtune=i686 -fno-use-cxa-atexit -fexceptions"])
+            AC_SUBST(CXXFLAGS, ["-O2 -g -pipe -march=i686 -mtune=i686 -fno-use-cxa-atexit -fexceptions -Wno-write-strings"])
         else
             #TODO: Review. i686 is not a valid march/mtune value for 64-bit compilation
             #TODO: Sticking -fPIC globally is probably a bit of a thermonuclear solution, but we
             # *absolutely* must be sure this flag is used when compiling static libraries
             AC_MSG_NOTICE([Using 64-bit CXXFLAGS])
             CXXFLAGS="-O2 -g -pipe -m64 -fPIC -fno-use-cxa-atexit -fexceptions"
-            AC_SUBST(CXXFLAGS, ["-O2 -g -pipe -m64 -fPIC -fno-use-cxa-atexit -fexceptions"])
+            AC_SUBST(CXXFLAGS, ["-O2 -g -pipe -m64 -fPIC -fno-use-cxa-atexit -fexceptions -Wno-write-strings"])
         fi
     fi
 fi



More information about the mapguide-commits mailing list