aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/postgresql.rb
diff options
context:
space:
mode:
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