Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add extconf.rb for #70, x86_64_linux and xi686_linux
* i686 was never a whiner but consistent small minds are at work. * yes x86_64 and i686 are identical.
- Loading branch information
Cecil
committed
Apr 1, 2015
1 parent
ca56350
commit 968bac0
Showing
12 changed files
with
178 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
require 'mkmf' | ||
|
||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-implicit-function-declaration -Wno-unused-function' | ||
$CFLAGS += ' -Wno-implicit-function-declaration -Wno-return-type -Wno-pointer-to-int-cast' | ||
$CFLAGS += ' -Wno-format' | ||
create_makefile('chipmunk') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
require 'mkmf' | ||
|
||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-implicit-function-declaration -Wno-unused-function' | ||
$CFLAGS += ' -Wno-implicit-function-declaration -Wno-return-type -Wno-pointer-to-int-cast' | ||
$CFLAGS += ' -Wno-format' | ||
create_makefile('chipmunk') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
require 'mkmf' | ||
|
||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-implicit-function-declaration -Wno-unused-function' | ||
$CFLAGS += ' -Wno-implicit-function-declaration -Wno-return-type -Wno-pointer-to-int-cast' | ||
$CFLAGS += ' -Wno-format -Wno-unused-but-set-variable' | ||
create_makefile('ftsearchrt') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
require 'mkmf' | ||
|
||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-implicit-function-declaration -Wno-unused-function' | ||
$CFLAGS += ' -Wno-implicit-function-declaration -Wno-return-type -Wno-pointer-to-int-cast' | ||
$CFLAGS += ' -Wno-format -Wno-unused-but-set-variable' | ||
create_makefile('ftsearchrt') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'mkmf' | ||
|
||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-implicit-function-declaration -Wno-unused-function' | ||
$CFLAGS += ' -Wno-implicit-function-declaration -Wno-return-type -Wno-pointer-to-int-cast' | ||
$CFLAGS += ' -Wno-format' | ||
#have_header('stdio.h') or exit | ||
dir_config('fast_xs') | ||
create_makefile('fast_xs') | ||
#abort "in fast_xs CC = #{CONFIG['CC']}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'mkmf' | ||
|
||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-implicit-function-declaration -Wno-unused-function' | ||
$CFLAGS += ' -Wno-implicit-function-declaration -Wno-return-type -Wno-pointer-to-int-cast' | ||
$CFLAGS += ' -Wno-format' | ||
#have_header('stdio.h') or exit | ||
dir_config('fast_xs') | ||
create_makefile('fast_xs') | ||
#abort "in fast_xs CC = #{CONFIG['CC']}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'mkmf' | ||
|
||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-implicit-function-declaration -Wno-unused-function' | ||
$CFLAGS += ' -Wno-implicit-function-declaration -Wno-return-type -Wno-pointer-to-int-cast' | ||
$CFLAGS += ' -Wno-format -Wno-uninitialized -Wno-extra' | ||
|
||
dir_config("hpricot_scan") | ||
#have_library("c", "main") | ||
create_makefile("hpricot_scan") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'mkmf' | ||
|
||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-implicit-function-declaration -Wno-unused-function' | ||
$CFLAGS += ' -Wno-implicit-function-declaration -Wno-return-type -Wno-pointer-to-int-cast' | ||
$CFLAGS += ' -Wno-format -Wno-uninitialized -Wno-extra' | ||
|
||
dir_config("hpricot_scan") | ||
#have_library("c", "main") | ||
create_makefile("hpricot_scan") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
puts "Loading sqlite3 mkmf" | ||
require 'mkmf' | ||
|
||
|
||
# :stopdoc: | ||
#RbConfig::CONFIG['CC'] = ENV['CC'] if ENV['CC'] # for compiling tests. | ||
#RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] | ||
|
||
# --with-sqlite3-{dir,include,lib} | ||
dir_config("sqlite3") | ||
|
||
# prioritize local builds | ||
#if enable_config("local", false) | ||
# $LDFLAGS = ENV.fetch("LDFLAGS", "") | ||
#end | ||
|
||
def asplode missing | ||
if RUBY_PLATFORM =~ /mingw|mswin/ | ||
abort "#{missing} is missing. Install SQLite3 from " + | ||
"http://www.sqlite.org/ first." | ||
else | ||
abort <<-error | ||
#{missing} is missing. Try 'port install sqlite3 +universal', | ||
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' | ||
and check your shared library search path (the | ||
location where your sqlite3 shared library is located). | ||
error | ||
end | ||
end | ||
|
||
asplode('sqlite3.h') unless find_header 'sqlite3.h' | ||
asplode('sqlite3') unless find_library 'sqlite3', 'sqlite3_libversion_number' | ||
|
||
# Functions defined in 1.9 but not 1.8 | ||
have_func('rb_proc_arity') | ||
|
||
# Functions defined in 2.1 but not 2.0 | ||
have_func('rb_integer_pack') | ||
|
||
# These functions may not be defined | ||
have_func('sqlite3_initialize') | ||
have_func('sqlite3_backup_init') | ||
have_func('sqlite3_column_database_name') | ||
have_func('sqlite3_enable_load_extension') | ||
have_func('sqlite3_load_extension') | ||
have_func('sqlite3_open_v2') | ||
have_func('sqlite3_prepare_v2') | ||
have_type('sqlite3_int64', 'sqlite3.h') | ||
have_type('sqlite3_uint64', 'sqlite3.h') | ||
|
||
create_makefile('sqlite3/sqlite3_native') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
"Loading sqlite3 mkmf for i686" | ||
require 'mkmf' | ||
|
||
# :stopdoc: | ||
#RbConfig::CONFIG['CC'] = ENV['CC'] if ENV['CC'] # for compiling tests. | ||
#RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] | ||
|
||
# --with-sqlite3-{dir,include,lib} | ||
dir_config("sqlite3") | ||
|
||
# prioritize local builds | ||
#if enable_config("local", false) | ||
# $LDFLAGS = ENV.fetch("LDFLAGS", "") | ||
#end | ||
|
||
def asplode missing | ||
if RUBY_PLATFORM =~ /mingw|mswin/ | ||
abort "#{missing} is missing. Install SQLite3 from " + | ||
"http://www.sqlite.org/ first." | ||
else | ||
abort <<-error | ||
#{missing} is missing. Try 'port install sqlite3 +universal', | ||
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' | ||
and check your shared library search path (the | ||
location where your sqlite3 shared library is located). | ||
error | ||
end | ||
end | ||
|
||
asplode('sqlite3.h') unless find_header 'sqlite3.h' | ||
asplode('sqlite3') unless find_library 'sqlite3', 'sqlite3_libversion_number' | ||
|
||
# Functions defined in 1.9 but not 1.8 | ||
have_func('rb_proc_arity') | ||
|
||
# Functions defined in 2.1 but not 2.0 | ||
have_func('rb_integer_pack') | ||
|
||
# These functions may not be defined | ||
have_func('sqlite3_initialize') | ||
have_func('sqlite3_backup_init') | ||
have_func('sqlite3_column_database_name') | ||
have_func('sqlite3_enable_load_extension') | ||
have_func('sqlite3_load_extension') | ||
have_func('sqlite3_open_v2') | ||
have_func('sqlite3_prepare_v2') | ||
have_type('sqlite3_int64', 'sqlite3.h') | ||
have_type('sqlite3_uint64', 'sqlite3.h') | ||
|
||
create_makefile('sqlite3/sqlite3_native') |