Sha256: 3fce9d556567b10ac9ae323bbf5498777be20f4161b4ff9bd267a412acd246c3
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 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" $CFLAGS += " -DSQLITE_OMIT_BUILTIN_TEST=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 create_makefile('amalgalite/amalgalite3')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amalgalite-0.10.0-x86-mswin32-60 | ext/amalgalite/extconf.rb |
amalgalite-0.10.0 | ext/amalgalite/extconf.rb |