Besides SPE (FSL e500v? cores) there are other powerpc processors that don't support altivec instructions so only enable them when it's 100% sure that the target has it. Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar> --- src/libFLAC/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libFLAC/Makefile.am b/src/libFLAC/Makefile.am index 247e33c..258de40 100644 --- a/src/libFLAC/Makefile.am +++ b/src/libFLAC/Makefile.am @@ -47,8 +47,7 @@ CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM else # Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific CPUCFLAGS -if FLaC__CPU_PPC_SPE -else +if FLaC__USE_ALTIVEC CPUCFLAGS += -maltivec -mabi=altivec endif #@@@ PPC optimizations temporarily disabled -- 1.8.3.2
Erik de Castro Lopo
2013-Dec-19 20:56 UTC
[flac-dev] [PATCH] Fix Makefile.am altivec logic
Gustavo Zacarias wrote:> Besides SPE (FSL e500v? cores) there are other powerpc processors > that don't support altivec instructions so only enable them when it's > 100% sure that the target has it.Thanks Gustavo, Committed and pushed. I can't currently test this as I've just moved house and my PPC machine isn't up and running yet. Will test then. Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/