diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2009-11-03 11:01:33 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2009-11-06 05:51:07 +1000 |
commit | 2653215900c71e8e4ef432145e4f0679cd43769a (patch) | |
tree | a3f9cebbbcf1d4ed189cb6f85bb5137f8aadde0b | |
parent | 82da2b93f3b6c63f6e14cdadcb83f58594683a63 (diff) | |
download | ffi-2653215900c71e8e4ef432145e4f0679cd43769a.tar.gz |
Detect powerpc64
-rw-r--r-- | Rakefile | 6 | ||||
-rw-r--r-- | libtest/GNUmakefile | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -40,10 +40,16 @@ CPU = case Config::CONFIG['host_cpu'].downcase else "i386" end + when /amd64|x86_64/ "x86_64" + + when /ppc64|powerpc64/ + "powerpc64" + when /ppc|powerpc/ "powerpc" + else Config::CONFIG['host_cpu'] end diff --git a/libtest/GNUmakefile b/libtest/GNUmakefile index 0aecfd9..6fab28a 100644 --- a/libtest/GNUmakefile +++ b/libtest/GNUmakefile @@ -107,6 +107,10 @@ ifeq ($(CPU), x86_64) MODEL = 64 endif +ifeq ($(CPU), powerpc64) + MODEL = 64 +endif + # On platforms (linux, solaris) that support both 32bit and 64bit, force building for one or the other ifneq ($(or $(findstring linux, $(OS)), $(findstring solaris, $(OS))),) # Change the CC/LD instead of CFLAGS/LDFLAGS, incase other things in the flags |