summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2010-09-13 09:04:55 -0400
committerJohn Koleszar <jkoleszar@google.com>2010-09-13 09:04:55 -0400
commit887d6ef49ae2adfbd10a9beb0e5787ea39937e02 (patch)
tree314350b8eaace79c613bcf7abfaf5583f1923e4b
parent7f1a908b97656580590018ab3b6c34544e8926ac (diff)
downloadlibvpx-887d6ef49ae2adfbd10a9beb0e5787ea39937e02.tar
libvpx-887d6ef49ae2adfbd10a9beb0e5787ea39937e02.tar.gz
libvpx-887d6ef49ae2adfbd10a9beb0e5787ea39937e02.tar.bz2
libvpx-887d6ef49ae2adfbd10a9beb0e5787ea39937e02.zip
configure: support for ppc32-linux-gcc
Fixes issue 89. Thanks to josejx for the patch. Change-Id: I7e664fed703b49f2fb3af4c5e6ce1173742000c2
-rwxr-xr-xbuild/make/configure.sh9
-rwxr-xr-xconfigure1
2 files changed, 9 insertions, 1 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index e9f8a2b9c..e787c5d2c 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -505,6 +505,12 @@ process_common_toolchain() {
*i[3456]86*)
tgt_isa=x86
;;
+ *powerpc64*)
+ tgt_isa=ppc64
+ ;;
+ *powerpc*)
+ tgt_isa=ppc32
+ ;;
esac
# detect tgt_os
@@ -755,8 +761,8 @@ process_common_toolchain() {
link_with_cc=gcc
setup_gnu_toolchain
add_asflags -force_cpusubtype_ALL -I"\$(dir \$<)darwin"
- add_cflags -maltivec -faltivec
soft_enable altivec
+ enabled altivec && add_cflags -maltivec
case "$tgt_os" in
linux*)
@@ -768,6 +774,7 @@ process_common_toolchain() {
add_cflags ${darwin_arch} -m${bits} -fasm-blocks
add_asflags ${darwin_arch} -force_cpusubtype_ALL -I"\$(dir \$<)darwin"
add_ldflags ${darwin_arch} -m${bits}
+ enabled altivec && add_cflags -faltivec
;;
esac
;;
diff --git a/configure b/configure
index 5d6964e09..f4cd67ce2 100755
--- a/configure
+++ b/configure
@@ -97,6 +97,7 @@ all_platforms="${all_platforms} ppc32-darwin8-gcc"
all_platforms="${all_platforms} ppc32-darwin9-gcc"
all_platforms="${all_platforms} ppc64-darwin8-gcc"
all_platforms="${all_platforms} ppc64-darwin9-gcc"
+all_platforms="${all_platormss} ppc32-linux-gcc"
all_platforms="${all_platforms} ppc64-linux-gcc"
all_platforms="${all_platforms} x86-darwin8-gcc"
all_platforms="${all_platforms} x86-darwin8-icc"