diff options
| author | Max Howell | 2009-10-23 14:51:50 +0100 |
|---|---|---|
| committer | Max Howell | 2009-10-23 19:20:16 +0100 |
| commit | 94ebfa0aa91439c95d0691580fd3a312347185e9 (patch) | |
| tree | 96083f01ac4f95b1b3bcb40ed965e3e15ac75866 /Library | |
| parent | 8210dcfb0c9954abd34026466dc1e838fddd0873 (diff) | |
| download | homebrew-94ebfa0aa91439c95d0691580fd3a312347185e9.tar.bz2 | |
ENV.m32
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 922845796..3b2da74c7 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -180,11 +180,16 @@ module HomebrewEnvExtension def cxx ENV['cxx'] or "g++" end - # in case you need it + def m64 append_to_cflags '-m64' ENV['LDFLAGS'] += '-arch x86_64' end + def m32 + append_to_cflags '-m32' + ENV['LDFLAGS'] += '-arch i386' + end + # i386 and x86_64 only, no PPC def universal_binary append_to_cflags '-arch i386 -arch x86_64' |
