ext/gdal-ruby/ogr/extconf.rb in gdal-1.0.0 vs ext/gdal-ruby/ogr/extconf.rb in gdal-2.0.0
- old
+ new
@@ -19,6 +19,11 @@
$CXXFLAGS = CONFIG["CXXFLAGS"] unless defined?($CXXFLAGS)
$CFLAGS << ' -Wno-format-security'
$CXXFLAGS << ' -Wno-format-security'
+if !(`gdal-config --version`.strip =~ /^1/)
+ $CFLAGS << ' -Wno-reserved-user-defined-literal -std=c++11'
+ $CXXFLAGS << ' -Wno-reserved-user-defined-literal -std=c++11'
+end
+
create_makefile('gdal-ruby/ogr')