aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMax Howell2009-10-23 14:51:50 +0100
committerMax Howell2009-10-23 19:20:16 +0100
commit03f37bef79e552f3d0ad6fe6e195229acb5a24c6 (patch)
treead0b5e249880be6b74ab686a2075bbf66027b7d5 /Library/Homebrew/extend
parent6de6bffd55f83558b0ba891c5721d6c0104d79d5 (diff)
downloadbrew-03f37bef79e552f3d0ad6fe6e195229acb5a24c6.tar.bz2
ENV.m32
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb7
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'