aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ld64.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-05-23 19:20:52 -0500
committerMisty De Meo2013-06-08 19:10:43 -0500
commit8d730004192f16858f44e2711d7cd06f29a899ce (patch)
treeaf8e4be4be4a9ca76a1186d6383f46acd199f654 /Library/Formula/ld64.rb
parent504a3330fa5fb7222b39e8e35005761c57577ff7 (diff)
downloadhomebrew-8d730004192f16858f44e2711d7cd06f29a899ce.tar.bz2
ld64: force 32-bit on Leopard
Diffstat (limited to 'Library/Formula/ld64.rb')
-rw-r--r--Library/Formula/ld64.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/ld64.rb b/Library/Formula/ld64.rb
index 1ee19c05f..4d35cb9a9 100644
--- a/Library/Formula/ld64.rb
+++ b/Library/Formula/ld64.rb
@@ -37,6 +37,9 @@ class Ld64 < Formula
end
def install
+ # ld64 itself can't build 64-bit on Leopard, and may be needed to link any 64-bit software
+ ENV.m32 if MacOS.version == :leopard
+
File.open('Makefile', 'w') {|f| f.write DATA.read}
inreplace 'src/ld/Options.cpp', '@@VERSION@@', version