diff options
| author | nibbles 2bits | 2012-11-09 00:03:33 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-11-09 07:44:59 -0800 |
| commit | facfe083b69b56434cc2857114fae8357d4267f4 (patch) | |
| tree | e3744786ab50e296bc80a416a5947458ffeb0011 /Library | |
| parent | 84cc54947362cffbf573bb96f214e8adb03563eb (diff) | |
| download | homebrew-facfe083b69b56434cc2857114fae8357d4267f4.tar.bz2 | |
ghc: add ENV.m32 for 32bit on x64.
- Add `ENV.m32` to fix build errors on 64bit hardware w/ `--32-bit`
Some users want to force 32bit ghc on 64bit hardware.
Ghc, however, comes with several internal libraries like libgmp
that get configured during the build. By forcing `ENV.m32`,
we force all the internal libs to build 32bit also.
Fixes #15925.
Closes #15933.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ghc.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/ghc.rb b/Library/Formula/ghc.rb index 330735ea0..6b49abf2a 100644 --- a/Library/Formula/ghc.rb +++ b/Library/Formula/ghc.rb @@ -84,6 +84,7 @@ class Ghc < Formula if Hardware.is_64_bit? and not build.build_32_bit? arch = 'x86_64' else + ENV.m32 # Need to force this to fix build error on internal libgmp. arch = 'i386' end |
