aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-16 09:41:25 -0700
committerAdam Vandenberg2010-04-16 17:57:38 -0700
commite0295576c04377bc071967b0f9f8a0526fcb426e (patch)
tree2a6f0dda93277e3be0469393ae4e74cdbb2446d8 /Library/Formula
parent9b7dc7fcbf2543f202be7c8ab45b8a3168198c37 (diff)
downloadhomebrew-e0295576c04377bc071967b0f9f8a0526fcb426e.tar.bz2
Bazaar - don't use Intel flags when building against system Python.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bazaar.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/bazaar.rb b/Library/Formula/bazaar.rb
index a83bbb771..501e3ad1e 100644
--- a/Library/Formula/bazaar.rb
+++ b/Library/Formula/bazaar.rb
@@ -8,6 +8,12 @@ class Bazaar <Formula
aka :bzr
def install
+ # Find the archs of the Python we are building against.
+ # If the python includes PPC support, then don't use Intel-
+ # specific compiler flags
+ archs = archs_for_command("python")
+ ENV.minimal_optimization if archs.include? :ppc64 or archs.include? :ppc7400
+
# Make the manual before we install (mv) bzrlib
system "make man1/bzr.1"
man1.install gzip('man1/bzr.1')