Skip to content

Instantly share code, notes, and snippets.

@eltiare
Created April 6, 2009 20:05
Show Gist options
  • Save eltiare/90906 to your computer and use it in GitHub Desktop.
Save eltiare/90906 to your computer and use it in GitHub Desktop.
(in /usr/local/src/do/do_mysql)
To cross-compile, install rake-compiler (gem install rake-compiler)
rm -r doc
rm -r pkg
/usr/local/bin/ruby extconf.rb
checking for mysql.h... yes
checking for main() in -lmysqlclient... yes
checking for mysql_query()... yes
checking for mysql_ssl_set()... yes
creating Makefile
make
gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DHAVE_MYSQL_H -DHAVE_MYSQL_QUERY -DHAVE_MYSQL_SSL_SET -I/usr/include/mysql -DBIG_JOINS=1 -fPIC -O2 -g -Wall -Wno-parentheses -fPIC -Wall -c do_mysql_ext.c
do_mysql_ext.c:42: warning: 'ID_NEW_RATIONAL' defined but not used
gcc -shared -o do_mysql_ext.so do_mysql_ext.o -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby -lmysqlclient -L/usr/lib/mysql -lmysqlclient -lrt -ldl -lcrypt -lm -lc
cp ext/do_mysql_ext/do_mysql_ext.so lib/do_mysql_ext.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment