ext/tiny_tds/extconf.rb in tiny_tds-0.4.1 vs ext/tiny_tds/extconf.rb in tiny_tds-0.4.2
- old
+ new
@@ -1,10 +1,11 @@
require 'mkmf'
-FREETDS_LIBRARIES = ['iconv','sybdb']
+FREETDS_LIBRARIES = ['sybdb']
+FREETDS_LIBRARIES.unshift 'iconv' if enable_config('iconv')
FREETDS_HEADERS = ['sybfront.h', 'sybdb.h']
-dir_config('iconv')
+dir_config('iconv') if enable_config('iconv')
dir_config('freetds')
def root_paths
eop_regexp = /#{File::SEPARATOR}bin$/
paths = ENV['PATH']