Sha256: 58aa331d9049b94e7004dab1849e27db4dd06fa715a88a42f7bdddec595162d6
Contents?: true
Size: 741 Bytes
Versions: 12
Compression:
Stored size: 741 Bytes
Contents
ENV["RC_ARCHS"] = "" if RUBY_PLATFORM =~ /darwin/ # Loads mkmf which is used to make makefiles for Ruby extensions require 'mkmf' # Allow for custom compiler to be specified. RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] # Use some default search paths dir_config("sqlite3", ["/usr/local", "/opt/local", "/usr"]) # NOTE: use GCC flags unless Visual C compiler is used $CFLAGS << ' -Wall ' unless RUBY_PLATFORM =~ /mswin/ if RUBY_VERSION < '1.8.6' $CFLAGS << ' -DRUBY_LESS_THAN_186' end # Do the work # create_makefile(extension_name) if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" ) have_func("sqlite3_prepare_v2") have_func("sqlite3_open_v2") create_makefile('do_sqlite3/do_sqlite3') end
Version data entries
12 entries across 12 versions & 1 rubygems