Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 212d7ae058f8d7cf5c340b94638c2309daaec451 1 parent 3ab8188
Jeremy Evans authored

Showing 2 changed files with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  Rakefile.cross
  2. +5 2 ext/sequel_pg/extconf.rb
2  Rakefile.cross
@@ -12,7 +12,7 @@ Rake::ExtensionTask.new('sequel_pg', SEQUEL_PG_GEMSPEC) do |ext|
12 12 COMPILE_HOME = Pathname( "~/.rake-compiler" ).expand_path
13 13 STATIC_SOURCESDIR = COMPILE_HOME + 'sources'
14 14 STATIC_BUILDDIR = COMPILE_HOME + 'builds'
15   - POSTGRESQL_VERSION = ENV['POSTGRESQL_VERSION'] || '8.4.4'
  15 + POSTGRESQL_VERSION = ENV['POSTGRESQL_VERSION'] || '9.0.1'
16 16 STATIC_POSTGRESQL_BUILDDIR = STATIC_BUILDDIR + "postgresql-#{POSTGRESQL_VERSION}"
17 17 STATIC_POSTGRES_LIBDIR = STATIC_POSTGRESQL_BUILDDIR + 'src/interfaces/libpq'
18 18 STATIC_POSTGRES_INCDIR = STATIC_POSTGRESQL_BUILDDIR + 'src/include'
7 ext/sequel_pg/extconf.rb
@@ -5,8 +5,11 @@
5 5
6 6 if enable_config("static-build")
7 7 # Link against all required libraries for static build, if they are available
8   - have_library('gdi32', 'CreateDC') && append_library($libs, 'gdi32')
9   - have_library('secur32') && append_library($libs, 'secur32')
  8 + have_library('gdi32', 'CreateDC')
  9 + have_library('secur32')
  10 + have_library('ws2_32')
  11 + have_library('eay32')
  12 + have_library('ssleay32', 'SSL_pending')
10 13 end
11 14
12 15 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.
Something went wrong with that request. Please try again.