diff --git a/Formula/erlang.rb b/Formula/erlang.rb index 094d5a78d99..2f904fb4c62 100644 --- a/Formula/erlang.rb +++ b/Formula/erlang.rb @@ -41,6 +41,12 @@ class Erlang < Formula fails_with :llvm + def patches + # Fixes problem with ODBC on Mavericks. Reported upstream: + # https://github.com/erlang/otp/pull/142 + DATA if MacOS.version >= :mavericks + end + def install ohai "Compilation takes a long time; use `brew install -v erlang` to see progress" unless ARGV.verbose? @@ -103,3 +109,17 @@ class Erlang < Formula end end end +__END__ +diff --git a/lib/odbc/configure.in b/lib/odbc/configure.in +index 83f7a47..fd711fe 100644 +--- a/lib/odbc/configure.in ++++ b/lib/odbc/configure.in +@@ -130,7 +130,7 @@ AC_SUBST(THR_LIBS) + odbc_lib_link_success=no + AC_SUBST(TARGET_FLAGS) + case $host_os in +- darwin*) ++ darwin1[[0-2]].*|darwin[[0-9]].*) + TARGET_FLAGS="-DUNIX" + if test ! -d "$with_odbc" || test "$with_odbc" = "yes"; then + ODBC_LIB= -L"/usr/lib"