From 03f37bef79e552f3d0ad6fe6e195229acb5a24c6 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 23 Oct 2009 14:51:50 +0100 Subject: [PATCH] ENV.m32 --- Library/Homebrew/extend/ENV.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 9228457965..3b2da74c7f 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'