fix cross compilation of win32 binary gem, fix mixed case file naming

--HG--
rename : postgres => POSTGRES
This commit is contained in:
Lars Kanis 2012-01-27 15:35:31 +01:00
parent 1218cfbf56
commit 82f04b8f63
5 changed files with 5 additions and 5 deletions

View File

@ -7,8 +7,8 @@ History.rdoc
LICENSE
Manifest.txt
POSTGRES
README-OS_X.rdoc
README-Windows.rdoc
readme-os_x.rdoc
readme-windows.rdoc
README.ja.rdoc
README.rdoc
Rakefile

View File

View File

@ -114,7 +114,6 @@ Rake::ExtensionTask.new do |ext|
"--with-opt-include=#{STATIC_POSTGRESQL_INCDIR}",
"--with-pg-lib=#{STATIC_POSTGRESQL_LIBDIR}",
"--with-opt-lib=#{STATIC_OPENSSL_BUILDDIR}",
"--enable-static-build",
]
end

View File

@ -4,7 +4,7 @@ require 'mkmf'
if ENV['MAINTAINER_MODE']
$stderr.puts "Maintainer mode enabled."
$CFLAGS <<
$CFLAGS <<
' -Wall' <<
' -ggdb' <<
' -DDEBUG' <<
@ -32,7 +32,7 @@ if pgconfig = ( with_config('pg-config') || with_config('pg_config') || find_exe
$stderr.puts "Using config values from %s" % [ pgconfig ]
$CPPFLAGS << " -I%s" % [ `"#{pgconfig}" --includedir`.chomp ]
$LDFLAGS << " -L%s" % [ `"#{pgconfig}" --libdir`.chomp ]
$LIBS << " " << `"#{pgconfig}" --libs`.chomp
$LIBS << " " << `"#{pgconfig}" --libs`.chomp unless ENV['CROSS_COMPILING']
else
$stderr.puts "No pg_config... trying anyway. If building fails, please try again with",
" --with-pg-config=/path/to/pg_config"

View File

@ -74,6 +74,7 @@
#if defined(_WIN32)
# include <fcntl.h>
__declspec(dllexport)
typedef long suseconds_t;
#endif