Permalink
Browse files

m32 and m64: add PPC support

  • Loading branch information...
1 parent 9ab5814 commit 25adbb70d5e0a4f5f24a81fe42e4cbdd5184a7ca @mistydemeo committed Apr 1, 2013
Showing with 10 additions and 2 deletions.
  1. +10 −2 Library/Homebrew/extend/ENV.rb
@@ -282,11 +282,19 @@ def enable_warnings
def m64
append_to_cflags '-m64'
- append 'LDFLAGS', '-arch x86_64'
+ if Hardware::CPU.type == :intel
+ append 'LDFLAGS', '-arch x86_64'
+ else
+ append 'LDFLAGS', '-arch ppc64'
+ end
end
def m32
append_to_cflags '-m32'
- append 'LDFLAGS', '-arch i386'
+ if Hardware::CPU.type == :intel
+ append 'LDFLAGS', '-arch i386'
+ else
+ append 'LDFLAGS', '-arch ppc'
+ end
end
# i386 and x86_64 (no PPC)

0 comments on commit 25adbb7

Please sign in to comment.