Author: loonycyborg
Date: Sat Dec  6 23:41:27 2008
New Revision: 31322

URL: http://svn.gna.org/viewcvs/wesnoth?rev=31322&view=rev
Log:
Pass compiler options to be compliant to C99 for C and C++98 for C++.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=31322&r1=31321&r2=31322&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Sat Dec  6 23:41:27 2008
@@ -294,9 +294,9 @@
     env.Append(CPPDEFINES = ["HAVE_CONFIG_H"])
 
     if "gcc" in env["TOOLS"]:
-        env.AppendUnique(CXXFLAGS = Split("-W -Wall -ansi -Wno-unused 
-Wno-sign-compare"))
+        env.AppendUnique(CCFLAGS = Split("-W -Wall -Wno-unused 
-Wno-sign-compare"), CFLAGS = ["-std=c99"], CXXFLAGS="-std=c++98")
         if env['strict']:
-            env.AppendUnique(CXXFLAGS = "-Werror")
+            env.AppendUnique(CCFLAGS = "-Werror")
 
         env["OPT_FLAGS"] = "-O2"
         env["DEBUG_FLAGS"] = Split("-O0 -DDEBUG -ggdb3")


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to