Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All tight Shoes can be built using just the special extconfs except for the 10.6 on 10.6 (I don't care about that one since building 10.6 from 10.9 works well enough)
- Loading branch information
Cecil
committed
Apr 3, 2015
1 parent
d9a4578
commit b6bd3ba
Showing
8 changed files
with
102 additions
and
5 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
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,7 @@ | ||
|
||
require 'mkmf' | ||
|
||
CONFIG['CC']=ENV['CC'] if ENV['CC'] | ||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
|
||
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' | ||
# update the CONFIG with the correct values. RbConfig won't work | ||
# for cross compiling. This is a bit heavy handed. | ||
CONFIG['CC']=ENV['CC'] if ENV['CC'] | ||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-variable -Wno-return-type' | ||
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,11 @@ | ||
|
||
require 'mkmf' | ||
|
||
CONFIG['CC']=ENV['CC'] if ENV['CC'] | ||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-function' | ||
|
||
#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' | ||
|
||
CONFIG['CC']=ENV['CC'] if ENV['CC'] | ||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math' | ||
$CFLAGS += ' -Wno-unused-function -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,58 @@ | ||
RbConfig::CONFIG['CC'] = ENV['CC'] if ENV['CC'] | ||
|
||
|
||
puts "Loading sqlite3 mkmf" | ||
require 'mkmf' | ||
|
||
CONFIG['CC']=ENV['CC'] if ENV['CC'] | ||
$CFLAGS += ' -Wno-declaration-after-statement -std=gnu99 -ffast-math ' | ||
|
||
|
||
# :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","#{ENV['ShoesDeps']}/include", ["#{ENV['ShoesDeps']}/bin"]) | ||
|
||
|
||
if RbConfig::CONFIG["host_os"] =~ /mswin/ | ||
$CFLAGS << ' -W3' | ||
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') |