ext/gdal-ruby/gdal/extconf.rb in gdal-0.0.3 vs ext/gdal-ruby/gdal/extconf.rb in gdal-0.0.4

- old
+ new

@@ -1,11 +1,11 @@ require 'mkmf' raise 'gdal-config not found.' if `which gdal-config`.empty? dir_config 'gdal', - `gdal-config --libs`.split(' ')[0].gsub(/-L/, ''), - `gdal-config --cflags`.split(' ')[0].gsub(/-I/, '') + `gdal-config --cflags`.split(' ')[0].gsub(/-I/, ''), + `gdal-config --libs`.split(' ')[0].gsub(/-L/, '') have_library 'gdal' or raise 'libgdal not found' pkg_config 'gdal'