summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Meissner <wmeissner@gmail.com>2009-11-03 11:01:33 +1000
committerWayne Meissner <wmeissner@gmail.com>2009-11-06 05:51:07 +1000
commit2653215900c71e8e4ef432145e4f0679cd43769a (patch)
treea3f9cebbbcf1d4ed189cb6f85bb5137f8aadde0b
parent82da2b93f3b6c63f6e14cdadcb83f58594683a63 (diff)
downloadffi-2653215900c71e8e4ef432145e4f0679cd43769a.tar.gz
Detect powerpc64
-rw-r--r--Rakefile6
-rw-r--r--libtest/GNUmakefile4
2 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 2bf2838..076e4dc 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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