From: John Koleszar Date: Mon, 13 Sep 2010 13:04:55 +0000 (-0400) Subject: configure: support for ppc32-linux-gcc X-Git-Tag: v0.9.5~95^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=887d6ef49ae2adfbd10a9beb0e5787ea39937e02;p=libvpx configure: support for ppc32-linux-gcc Fixes issue 89. Thanks to josejx for the patch. Change-Id: I7e664fed703b49f2fb3af4c5e6ce1173742000c2 --- 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"