aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/postgresql.rb
diff options
context:
space:
mode:
authorJack Nagel2014-09-25 15:27:01 -0500
committerJack Nagel2014-09-25 15:27:01 -0500
commit542cbe4bbe1f582e5d56795c993aebb6dd416a9a (patch)
tree2bc5a44f5d4baf5e903b82c032adf1996931f9b0 /Library/Formula/postgresql.rb
parentb8cc8d4ec0d8760689af6f8bb1a95192efb95aac (diff)
downloadhomebrew-542cbe4bbe1f582e5d56795c993aebb6dd416a9a.tar.bz2
postgresql: fix 32-bit arch flags
Diffstat (limited to 'Library/Formula/postgresql.rb')
-rw-r--r--Library/Formula/postgresql.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb
index b3a01497c..94cc37918 100644
--- a/Library/Formula/postgresql.rb
+++ b/Library/Formula/postgresql.rb
@@ -82,8 +82,7 @@ class Postgresql < Formula
end
if build.build_32_bit?
- ENV.append 'CFLAGS', "-arch #{MacOS.preferred_arch}"
- ENV.append 'LDFLAGS', "-arch #{MacOS.preferred_arch}"
+ ENV.append %w{CFLAGS LDFLAGS}, "-arch #{Hardware::CPU.arch_32_bit}"
end
system "./configure", *args