aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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