ext/gdal-ruby/gdal/extconf.rb in gdal-1.0.0 vs ext/gdal-ruby/gdal/extconf.rb in gdal-2.0.0
- old
+ new
@@ -19,7 +19,12 @@
$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/gdal'