<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -25,7 +25,7 @@
 module HomebrewEnvExtension
   # -w: keep signal to noise high
   # -fomit-frame-pointer: we are not debugging this software, we are using it
-  SAFE_CFLAGS_FLAGS = &quot;-w -pipe -fomit-frame-pointer -mmacosx-version-min=#{MACOS_VERSION}&quot;
+  SAFE_CFLAGS_FLAGS = &quot;-w -pipe -fomit-frame-pointer&quot;
 
   def setup_build_environment
     # Clear CDPATH to avoid make issues that depend on changing directories
@@ -94,13 +94,26 @@ module HomebrewEnvExtension
       cflags&lt;&lt;&quot;-msse3&quot;
     end
 
-    ENV['CFLAGS']=ENV['CXXFLAGS']=&quot;#{cflags*' '} #{SAFE_CFLAGS_FLAGS}&quot;
+    ENV['CFLAGS']=ENV['CXXFLAGS']=&quot;#{cflags*' '} #{SAFE_CFLAGS_FLAGS} -mmacosx-version-min=#{MACOS_VERSION}&quot;
   end
   
   def deparallelize
     remove 'MAKEFLAGS', /-j\d+/
   end
   alias_method :j1, :deparallelize
+
+  def O3
+    # Sometimes O4 just takes fucking forever
+    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_0_1
     case MACOS_VERSION
     when 10.5
@@ -117,17 +130,6 @@ module HomebrewEnvExtension
     remove_from_cflags '-msse4.1'
     remove_from_cflags '-msse4.2'
   end
-  def O3
-    # Sometimes O4 just takes fucking forever
-    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']=&quot;gcc-4.2&quot;
@@ -135,10 +137,18 @@ module HomebrewEnvExtension
     self['LD']=self['CC']
     self.O3
   end
+
   def osx_10_4
-    self['MACOSX_DEPLOYMENT_TARGET']=nil
+    self['MACOSX_DEPLOYMENT_TARGET']=&quot;10.4&quot;
     remove_from_cflags(/ ?-mmacosx-version-min=10\.\d/)
+    append_to_cflags('-mmacosx-version-min=10.4')
   end
+  def osx_10_5
+    self['MACOSX_DEPLOYMENT_TARGET']=&quot;10.5&quot;
+    remove_from_cflags(/ ?-mmacosx-version-min=10\.\d/)
+    append_to_cflags('-mmacosx-version-min=10.5')
+  end
+
   def minimal_optimization
     self['CFLAGS']=self['CXXFLAGS']=&quot;-Os #{SAFE_CFLAGS_FLAGS}&quot;
   end</diff>
      <filename>Library/Homebrew/extend/ENV.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9338e8e74f81b82cd5772a42fc0cbdf3c7b79385</id>
    </parent>
  </parents>
  <author>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </author>
  <url>http://github.com/faisal/homebrew/commit/8210dcfb0c9954abd34026466dc1e838fddd0873</url>
  <id>8210dcfb0c9954abd34026466dc1e838fddd0873</id>
  <committed-date>2009-10-23T11:20:16-07:00</committed-date>
  <authored-date>2009-10-23T06:51:40-07:00</authored-date>
  <message>ENV.osx_10_5</message>
  <tree>e90c97811aa63952d0c392809d0c3170c99f88ed</tree>
  <committer>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </committer>
</commit>
