hnakamur/homebrew — comment on commit 42c8cc1d08047f64409412937aa6813c0c53be25
File: Library/Formula/erlang.rb line 94
By hnakamur:

I agree it's better to avoid hard-coding SDK version. However, compilation fails on Lion without it (using /Developer/SDKs/MacOSX10.7.sdk).
Also this is the way written in erlang document INSTALL.md.

If you want to build the `wx` application, get wxMac-2.8.12(`wxMac-2.8.12.tar.gz` from) and build: $ arch_flags="-arch i386" ./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --prefix=/usr/local --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6 --enable-unicode --with-opengl --disable-shared $ make $ sudo make install