diff options
| author | Max Howell | 2009-10-23 14:51:50 +0100 |
|---|---|---|
| committer | Max Howell | 2009-10-23 19:20:16 +0100 |
| commit | 03f37bef79e552f3d0ad6fe6e195229acb5a24c6 (patch) | |
| tree | ad0b5e249880be6b74ab686a2075bbf66027b7d5 /Library/Homebrew/extend | |
| parent | 6de6bffd55f83558b0ba891c5721d6c0104d79d5 (diff) | |
| download | brew-03f37bef79e552f3d0ad6fe6e195229acb5a24c6.tar.bz2 | |
ENV.m32
Diffstat (limited to 'Library/Homebrew/extend')
| -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' |
