aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTom von Schwerdtner2009-10-02 18:46:27 -0400
committerMax Howell2009-10-04 18:36:44 +0100
commitef580e9541689922fb405228aaa3b95e7c5503cb (patch)
treeeccd7187dfd838026924506003fe45f281a629a9 /Library
parent197402171842b3f6c3aab74f7b06abf6246f4cde (diff)
downloadbrew-ef580e9541689922fb405228aaa3b95e7c5503cb.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 Homebrew/homebrew#75
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brewkit.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb
index 6c85c406f..3d25edc92 100644
--- a/Library/Homebrew/brewkit.rb
+++ b/Library/Homebrew/brewkit.rb
@@ -128,6 +128,12 @@ module HomebrewEnvExtension
remove_from_cflags '-O4'
append_to_cflags '-O3'
end
+ def O2
+ # Sometimes O3 doesn't work or produces bad binaries
+ remove_from_cflags '-O4'
+ remove_from_cflags '-O3'
+ append_to_cflags '-O2'
+ end
def gcc_4_2
# Sometimes you want to downgrade from LLVM to GCC 4.2
self['CC']="gcc-4.2"