Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Minor tweaks cross compile #341

merged 3 commits into from Jun 29, 2012


None yet
2 participants

luislavena commented Jun 29, 2012

The changes implemented in this patch solve the problems described in issue #333

I promise @tmm1, last build 😄

Thank you ❤️ ❤️ ❤️

luislavena added some commits Jun 28, 2012

@luislavena luislavena Bump rake-compiler version to 0.8.1
Latest rake-compiler fixed several cross-platform issues.
@luislavena luislavena Consistently adjust FD_SETSIZE on all extensions
Previously only `rubyeventmachine` FD were adjusted. Just to be consistent
all compiled extensions should be doing the same.
@luislavena luislavena Accept optional OPENSSL_VERSION when cross-compiling
ruby-pg project no longer uses 1.0.0a version but 1.0.1c instead. When
follow the warning instructions users will still fail to obtain the right

Allowing to provide an alternative version is good :-)

luislavena commented Jun 29, 2012

I put in #333 the steps I took to build the gem:

  • Use Ruby 1.8.7 natively
  • Have Ruby 1.8.7-p358 and 1.9.3-p125 cross compiled Rubies installed.
  • Build openssl_libs from ruby-pg with rake openssl_libs OPENSSL_VERSION=1.0.0j
  • Move the build artifacts of openssl into rake-compiler: mv build/builds/openssl-1.0.0j/ ~/.rake-compiler/builds/
  • Build the extensions with rake cross compile OPENSSL_VERSION=1.0.0j RUBY_CC_VERSION=1.8.7:1.9.3
  • Build the gem: rake cross native gem

@tmm1 tmm1 added a commit that referenced this pull request Jun 29, 2012

@tmm1 tmm1 Merge pull request #341 from luislavena/minor-tweaks-cross-compile
Minor tweaks cross compile

@tmm1 tmm1 merged commit 92c58c4 into eventmachine:master Jun 29, 2012


tmm1 commented Jun 29, 2012

Thanks! ⭐️⚡️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment