diff options
| author | Jack Nagel | 2013-11-08 19:06:15 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-08 19:06:32 -0600 |
| commit | 8cb5a2f10e1b29bdec4136bbaab3f7a80a3ce9a4 (patch) | |
| tree | c67b4a20c1f0d72df3281e942872e4a8ca98addc /Library/Formula | |
| parent | c3110934d491db3a4a86e02e46eea0334057e324 (diff) | |
| download | homebrew-8cb5a2f10e1b29bdec4136bbaab3f7a80a3ce9a4.tar.bz2 | |
erlang: work around superenv bug
I don't want to bottle this quite yet since I think a fix in superenv is
imminent.
Fixes #23754.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/erlang.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb index 8f090d803..416175aa8 100644 --- a/Library/Formula/erlang.rb +++ b/Library/Formula/erlang.rb @@ -74,6 +74,14 @@ class Erlang < Formula end system "./configure", *args + + if ENV.compiler == :clang + # Superenv does not pass -march=native during configure, causing + # misdetection of this capability on some architectures: + # https://github.com/mxcl/homebrew/issues/23754 + inreplace Dir['erts/*/config.h'].first, /^#define ETHR_HAVE___SYNC_VAL_COMPARE_AND_SWAP128 1$/, '' + end + system "make" ENV.j1 # Install is not thread-safe; can try to create folder twice and fail system "make install" |
