Skip to content

Instantly share code, notes, and snippets.

@foca
Created April 4, 2009 06:52
Show Gist options
  • Save foca/90137 to your computer and use it in GitHub Desktop.
Save foca/90137 to your computer and use it in GitHub Desktop.
foca ~/.rake-compiler/sources/sqlite3-ruby (git: master)
▸ rake cross compile RUBY_CC_VERSION=1.8.6
(in /Users/foca/.rake-compiler/sources/sqlite3-ruby)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
mkdir -p vendor/sqlite3/lib
cd vendor
--2009-04-04 03:50:37-- http://www.sqlite.org/sqlitedll-3_6_6_2.zip
Resolving www.sqlite.org... 67.18.92.124
Connecting to www.sqlite.org|67.18.92.124|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 243081 (237K) [application/zip]
Saving to: `sqlitedll-3_6_6_2.zip'
100%[==========================================================================================>] 243,081 33.2K/s in 7.7s
2009-04-04 03:50:52 (30.9 KB/s) - `sqlitedll-3_6_6_2.zip' saved [243081/243081]
cd -
cd vendor/sqlite3/lib
Archive: /Users/foca/.rake-compiler/sources/sqlite3-ruby/vendor/sqlitedll-3_6_6_2.zip
inflating: sqlite3.dll
inflating: sqlite3.def
touch sqlite3.dll
cd -
/opt/local/bin/i386-mingw32-dlltool: Path components stripped from dllname, 'vendor/sqlite3/lib/sqlite3.dll'.
mkdir -p vendor/sqlite3/include
cd vendor
--2009-04-04 03:50:53-- http://www.sqlite.org/sqlite-amalgamation-3_6_6_2.zip
Resolving www.sqlite.org... 67.18.92.124
Connecting to www.sqlite.org|67.18.92.124|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 941695 (920K) [application/zip]
Saving to: `sqlite-amalgamation-3_6_6_2.zip'
100%[==========================================================================================>] 941,695 28.2K/s in 59s
2009-04-04 03:51:55 (15.7 KB/s) - `sqlite-amalgamation-3_6_6_2.zip' saved [941695/941695]
cd -
cd vendor/sqlite3/include
Archive: /Users/foca/.rake-compiler/sources/sqlite3-ruby/vendor/sqlite-amalgamation-3_6_6_2.zip
inflating: sqlite3.c
inflating: sqlite3.h
inflating: sqlite3ext.h
touch sqlite3.h
cd -
mkdir -p tmp/i386-mswin32/sqlite3_api
cp /Users/foca/.rake-compiler/ruby/ruby-1.8.6-p368/lib/ruby/1.8/i386-mingw32/rbconfig.rb tmp/i386-mswin32/sqlite3_api/rbconfig.rb
cd tmp/i386-mswin32/sqlite3_api
checking for fdatasync() in -lrt... no
checking for sqlite3.h... yes
checking for sqlite3_open() in -lsqlite3... yes
creating Makefile
cd -
cd tmp/i386-mswin32/sqlite3_api
i386-mingw32-gcc -I. -I. -I/Users/foca/.rake-compiler/ruby/ruby-1.8.6-p368/lib/ruby/1.8/i386-mingw32 -I/Users/foca/.rake-compiler/sources/sqlite3-ruby/ext/sqlite3_api -DHAVE_SQLITE3_H -I/Users/foca/.rake-compiler/sources/sqlite3-ruby/vendor/sqlite3/include -g -O2 -c /Users/foca/.rake-compiler/sources/sqlite3-ruby/ext/sqlite3_api/sqlite3_api_wrap.c
i386-mingw32-gcc -shared -s -o sqlite3_api.so sqlite3_api_wrap.o -L. -L/Users/foca/.rake-compiler/ruby/ruby-1.8.6-p368/lib -L/Users/foca/.rake-compiler/sources/sqlite3-ruby/vendor/sqlite3/lib -L. -Wl,--enable-auto-image-base,--enable-auto-import,--export-all -lmsvcrt-ruby18 -lsqlite3 -lshell32 -lwsock32
cd -
cp tmp/i386-mswin32/sqlite3_api/sqlite3_api.so lib/sqlite3_api.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment