Permalink
Browse files

--32-bit support for postgresql + ossp-uuid

  • Loading branch information...
flegoff committed Dec 21, 2011
1 parent f3cbe86 commit ef902c415819d58475653fcec3304306abdc432c
Showing with 7 additions and 6 deletions.
  1. +2 −2 Library/Formula/ossp-uuid.rb
  2. +5 −4 Library/Formula/postgresql.rb
@@ -7,8 +7,8 @@ class OsspUuid < Formula
md5 '5db0d43a9022a6ebbbc25337ae28942f'
def install
- ENV.append 'CFLAGS', '-arch i386' if ARGV.include? '--build32'
- ENV.append 'LDFLAGS', '-arch i386' if ARGV.include? '--build32'
+ ENV.append 'CFLAGS', '-arch i386' if ARGV.include? '--32-bit'
+ ENV.append 'LDFLAGS', '-arch i386' if ARGV.include? '--32-bit'
system "./configure", "--disable-debug",
"--without-perl",
"--without-php",
@@ -45,13 +45,13 @@ def install
ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip
ENV.append 'LIBS', `uuid-config --libs`.strip
- if not ARGV.include? '--build32' and MacOS.prefer_64_bit? and not ARGV.include? '--no-python'
+ if not ARGV.include? '--32-bit' and MacOS.prefer_64_bit? and not ARGV.include? '--no-python'
args << "ARCHFLAGS='-arch x86_64'"
check_python_arch
end
- ENV.append 'CFLAGS', '-arch i386' if ARGV.include? '--build32'
- ENV.append 'LDFLAGS', '-arch i386' if ARGV.include? '--build32'
+ ENV.append 'CFLAGS', '-arch i386' if ARGV.include? '--32-bit'
+ ENV.append 'LDFLAGS', '-arch i386' if ARGV.include? '--32-bit'
# Fails on Core Duo with O4 and O3
ENV.O2 if Hardware.intel_family == :core
@@ -136,7 +136,8 @@ def caveats
if MacOS.prefer_64_bit? then
s << <<-EOS
-To install postgresql ( and ossp-uuid ) in 32 bits mode; you may use the --build32 flag
+To install postgresql ( and ossp-uuid ) in 32 bits mode; you may use --32-bit :
+ brew install postgresql --32-bit
If you want to install the postgres gem, including ARCHFLAGS is recommended:
env ARCHFLAGS="-arch x86_64" gem install pg

0 comments on commit ef902c4

Please sign in to comment.