From b7e66e303126e564ffd377f05fcd25df807c18df Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 18 Jun 2014 17:04:07 -0400 Subject: [PATCH] build with gnu99 and gnu++11 standards --- Rakefile.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Rakefile.rb b/Rakefile.rb index 0a762a0..0defa7a 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -10,8 +10,9 @@ GTEST_VERSION = "1.7.0" base_env = Rscons::Environment.new do |env| env.build_root = "build" env["CPPPATH"] << "src/lib/include" - env["CFLAGS"] += ["-Wall", "-O2"] - env["CXXFLAGS"] += ["-Wall", "-O2"] + env["CCFLAGS"] += ["-Wall", "-O2"] + env["CFLAGS"] << "-std=gnu99" + env["CXXFLAGS"] << "-std=gnu++11" end task :library do