aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/postgresql.rb
diff options
context:
space:
mode:
authorTom von Schwerdtner2009-10-02 18:46:27 -0400
committerMax Howell2009-10-04 18:36:44 +0100
commitef92d9dc377d50f2b43b6dc6899ee9b172f0a725 (patch)
tree5a9651ff05470224b25c47ab8aeb170bd358fb53 /Library/Formula/postgresql.rb
parentdef838ef28a2b6450717b12eb09a73aacca25064 (diff)
downloadhomebrew-ef92d9dc377d50f2b43b6dc6899ee9b172f0a725.tar.bz2
Introduce ENV.O2 and use that for the postgresql build
Also only set ARCHFLAGS on non-Core Duo machines... though it seemed to build fine even with it, it doenst make much sense to me... these changes are kind of up for debate but it "works for me" this way... Closes #75
Diffstat (limited to 'Library/Formula/postgresql.rb')
-rw-r--r--Library/Formula/postgresql.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb
index 8cd9a1d93..64592e1d1 100644
--- a/Library/Formula/postgresql.rb
+++ b/Library/Formula/postgresql.rb
@@ -20,15 +20,19 @@ class Postgresql <Formula
"--disable-debug"
]
- if MACOS_VERSION >= 10.6
- configure_args << "ARCHFLAGS='-arch x86_64'"
+ if MACOS_VERSION >= 10.6 && Hardware.is_64_bit?
+ configure_args << "ARCHFLAGS='-arch x86_64'"
+ end
+
+ # Fails on Core Duo with O4 and O3
+ if Hardware.intel_family == :core
+ ENV.O2
end
system "./configure", *configure_args
system "make install"
(prefix+'org.postgresql.postgres.plist').write startup_plist
-
end
def skip_clean? path