blob: cd9e8f197aecd29b5af672693653962b82de33a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-aa,v 1.1 2010/09/10 04:42:58 taca Exp $
Don't use deprecated constant PLATFORM, use RUBY_PLATFORM.
--- ext/extconf.rb.orig 2010-08-27 23:28:37.000000000 +0000
+++ ext/extconf.rb
@@ -1,13 +1,13 @@
# windows compatibility, need different library name
-if(PLATFORM =~ /mingw|mswin/) then
+if(RUBY_PLATFORM =~ /mingw|mswin/) then
$libname = '/ms/libpq'
else
$libname = 'pq'
end
-if(PLATFORM =~ /darwin/) then
+if(RUBY_PLATFORM =~ /darwin/) then
# test if postgresql is probably universal
bindir = (IO.popen("pg_config --bindir").readline.chomp rescue nil)
filetype = (IO.popen("file #{bindir}/pg_config").
|