Permalink
Browse files

Build the Windows binary gem against PostgreSQL 9.0.1

Previously, it built against 8.4.4 and had issues with
the new blob serialization used by default in 9.0.1.
  • Loading branch information...
1 parent 3ab8188 commit 212d7ae058f8d7cf5c340b94638c2309daaec451 @jeremyevans committed Mar 16, 2011
Showing with 6 additions and 3 deletions.
  1. +1 −1 Rakefile.cross
  2. +5 −2 ext/sequel_pg/extconf.rb
View
2 Rakefile.cross
@@ -12,7 +12,7 @@ Rake::ExtensionTask.new('sequel_pg', SEQUEL_PG_GEMSPEC) do |ext|
COMPILE_HOME = Pathname( "~/.rake-compiler" ).expand_path
STATIC_SOURCESDIR = COMPILE_HOME + 'sources'
STATIC_BUILDDIR = COMPILE_HOME + 'builds'
- POSTGRESQL_VERSION = ENV['POSTGRESQL_VERSION'] || '8.4.4'
+ POSTGRESQL_VERSION = ENV['POSTGRESQL_VERSION'] || '9.0.1'
STATIC_POSTGRESQL_BUILDDIR = STATIC_BUILDDIR + "postgresql-#{POSTGRESQL_VERSION}"
STATIC_POSTGRES_LIBDIR = STATIC_POSTGRESQL_BUILDDIR + 'src/interfaces/libpq'
STATIC_POSTGRES_INCDIR = STATIC_POSTGRESQL_BUILDDIR + 'src/include'
View
7 ext/sequel_pg/extconf.rb
@@ -5,8 +5,11 @@
if enable_config("static-build")
# Link against all required libraries for static build, if they are available
- have_library('gdi32', 'CreateDC') && append_library($libs, 'gdi32')
- have_library('secur32') && append_library($libs, 'secur32')
+ have_library('gdi32', 'CreateDC')
+ have_library('secur32')
+ have_library('ws2_32')
+ have_library('eay32')
+ have_library('ssleay32', 'SSL_pending')
end
if (have_library('pq') || have_library('libpq') || have_library('ms/libpq')) && have_header('libpq-fe.h')

0 comments on commit 212d7ae

Please sign in to comment.