aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMax Howell2009-11-05 18:13:41 +0000
committerMax Howell2009-11-07 18:22:34 +0000
commit7ec2874746bf504425946045bcbae7a103f151f8 (patch)
treee71f9c2c6734c234fb2f5e594f06255154a95a35 /Library/Homebrew/extend
parentc5eb65332d8e0c338eb7b6aa62a2444d3c95c936 (diff)
downloadbrew-7ec2874746bf504425946045bcbae7a103f151f8.tar.bz2
Fix ENV.m32 when LDFLAGS already exists
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 3b2da74c7..1edc4a64b 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -183,11 +183,11 @@ module HomebrewEnvExtension
def m64
append_to_cflags '-m64'
- ENV['LDFLAGS'] += '-arch x86_64'
+ ENV.append 'LDFLAGS', '-arch x86_64'
end
def m32
append_to_cflags '-m32'
- ENV['LDFLAGS'] += '-arch i386'
+ ENV.append 'LDFLAGS', '-arch i386'
end
# i386 and x86_64 only, no PPC