Permalink
Browse files

wxmac: fix building for Lion

Closes #8378.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
  • Loading branch information...
1 parent 6ae836b commit df2870641b4ed59aede85bafcdf7eb49e03b1b5a @bsdf bsdf committed with mistydemeo Oct 30, 2011
Showing with 14 additions and 3 deletions.
  1. +14 −3 Library/Formula/wxmac.rb
View
@@ -82,9 +82,20 @@ def install
ENV.append compiler_flag, "-arch i386"
end
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--enable-unicode"
+ args = [
+ "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--enable-unicode"
+ ]
+
+ # build will fail on Lion unless we use the 10.6 sdk
+ if MacOS.lion?
+ args << "--with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk"
+ args << "--with-macosx-version-min=10.6"
+ end
+
+ system "./configure", *args
system "make install"
if build_python?

0 comments on commit df28706

Please sign in to comment.