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"