ext/gdal-ruby/gdalconst/extconf.rb in gdal-0.0.6 vs ext/gdal-ruby/gdalconst/extconf.rb in gdal-0.0.7
- old
+ new
@@ -10,9 +10,12 @@
pkg_config 'gdal'
$libs = append_library $libs, 'gdal'
+# earlier versions of ruby do not define $CXXFLAGS
+$CXXFLAGS = CONFIG["CXXFLAGS"] unless defined?($CXXFLAGS)
+
$CFLAGS << ' -Wno-format-security'
$CXXFLAGS << ' -Wno-format-security'
create_makefile('gdal-ruby/gdalconst')