Skip to content
This repository
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor

Showing 2 changed files with 12 additions and 4 deletions. Show diff stats Hide diff stats

  1. +2 2 Library/Formula/mpfr.rb
  2. +10 2 Library/Homebrew/extend/ENV.rb
4 Library/Formula/mpfr.rb
@@ -27,7 +27,7 @@ class Mpfr < Formula
27 27 end
28 28
29 29 def patches
30   - "https://gist.github.com/raw/4472199/42c0b207037a133527083d12adc9028b4da429ee/gistfile1.txt"
  30 + "http://www.mpfr.org/mpfr-3.1.1/allpatches"
31 31 end
32 32
33 33 def install
@@ -37,7 +37,7 @@ def install
37 37 # Note: This logic should match what the GMP formula does.
38 38 if MacOS.prefer_64_bit? and not build.build_32_bit?
39 39 ENV.m64
40   - args << "--build=x86_64-apple-darwin"
  40 + args << (Hardware::CPU.type == :intel) ? "--build=x86_64-apple-darwin" : "--build=ppc64-apple-darwin"
41 41 else
42 42 ENV.m32
43 43 args << "--build=none-apple-darwin"
12 Library/Homebrew/extend/ENV.rb
@@ -282,11 +282,19 @@ def enable_warnings
282 282
283 283 def m64
284 284 append_to_cflags '-m64'
285   - append 'LDFLAGS', '-arch x86_64'
  285 + if Hardware::CPU.type == :intel
  286 + append 'LDFLAGS', '-arch x86_64'
  287 + else
  288 + append 'LDFLAGS', '-arch ppc64'
  289 + end
286 290 end
287 291 def m32
288 292 append_to_cflags '-m32'
289   - append 'LDFLAGS', '-arch i386'
  293 + if Hardware::CPU.type == :intel
  294 + append 'LDFLAGS', '-arch i386'
  295 + else
  296 + append 'LDFLAGS', '-arch ppc'
  297 + end
290 298 end
291 299
292 300 # i386 and x86_64 (no PPC)

No commit comments for this range

Something went wrong with that request. Please try again.