Sha256: e7ae6ea225e2cd91b5481998bbe6cf050a8c65a9c3065b7b372d0a58205263a3
Contents?: true
Size: 1.19 KB
Versions: 15
Compression:
Stored size: 1.19 KB
Contents
require 'mkmf' require 'rbconfig' # make available table and column meta data api $CFLAGS += " -DSQLITE_ENABLE_COLUMN_METADATA=1" $CFLAGS += " -DSQLITE_ENABLE_RTREE=1" # we compile sqlite the same way that the installation of ruby is compiled. if Config::CONFIG['configure_args'].include?( "--enable-pthread" ) then $CFLAGS += " -DSQLITE_THREADSAFE=1" else $CFLAGS += " -DSQLITE_THREADSAFE=0" end # remove the -g if it exists $CFLAGS = $CFLAGS.gsub(/-g/,'') # remove -Wall if it exists $CFLAGS = $CFLAGS.gsub(/-Wall/,'') #$CFLAGS += " -Wall" # there are issues with the mingw compiler and compiling sqlite with debugging # on. You will get lots of warnings of the sort # # Warning: .stabs: description field '16274' too big, try a different debug format # # it appears to be a known issue and has no affect on the normal usage of sqlite # # warnflags and debugflags appear to be 1.9 constructs # if CONFIG['arch'] =~ /(mswin|mingw)/i then CONFIG['debugflags'] = CONFIG['debugflags'].gsub(/-g/,'') if CONFIG['debugflags'] CONFIG['warnflags'] = CONFIG['warnflags'].gsub(/-Wall/,'') if CONFIG['warnflags'] end subdir = RUBY_VERSION.sub(/\.\d$/,'') create_makefile("amalgalite/#{subdir}/amalgalite3")
Version data entries
15 entries across 15 versions & 1 rubygems