Index: source/libvpx/build/make/configure.sh |
=================================================================== |
--- source/libvpx/build/make/configure.sh (revision 60257) |
+++ source/libvpx/build/make/configure.sh (working copy) |
@@ -495,7 +495,7 @@ |
process_common_toolchain() { |
if [ -z "$toolchain" ]; then |
- gcctarget="$(gcc -dumpmachine 2> /dev/null)" |
+ gcctarget="$(gcc -dumpmachine 2> /dev/null)" |
# detect tgt_isa |
case "$gcctarget" in |
@@ -505,6 +505,12 @@ |
*i[3456]86*) |
tgt_isa=x86 |
;; |
+ *powerpc64*) |
+ tgt_isa=ppc64 |
+ ;; |
+ *powerpc*) |
+ tgt_isa=ppc32 |
+ ;; |
esac |
# detect tgt_os |
@@ -755,8 +761,8 @@ |
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 @@ |
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 |
;; |
@@ -902,8 +909,8 @@ |
# glibc needs these |
if enabled linux; then |
- add_cflags -D_LARGEFILE_SOURCE |
- add_cflags -D_FILE_OFFSET_BITS=64 |
+ add_cflags -D_LARGEFILE_SOURCE |
+ add_cflags -D_FILE_OFFSET_BITS=64 |
fi |
} |