From 059c9a5f2aa9c10bcd9c167e78abb99483de60cf Mon Sep 17 00:00:00 2001 From: DRC Date: Sat, 3 Dec 2016 21:17:09 +0000 Subject: [PATCH] Build: Fix regression in AltiVec SIMD detection Only the SIMD source files should be built with -maltivec. Otherwise the detection code will not be compiled in. --- simd/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/simd/CMakeLists.txt b/simd/CMakeLists.txt index a4a69b2..6ae794f 100755 --- a/simd/CMakeLists.txt +++ b/simd/CMakeLists.txt @@ -274,11 +274,12 @@ set(SIMD_SOURCES powerpc/jccolor-altivec.c powerpc/jcgray-altivec.c powerpc/jdmerge-altivec.c powerpc/jdsample-altivec.c powerpc/jfdctfst-altivec.c powerpc/jfdctint-altivec.c powerpc/jidctfst-altivec.c powerpc/jidctint-altivec.c - powerpc/jquanti-altivec.c powerpc/jsimd.c) + powerpc/jquanti-altivec.c) -add_definitions(-maltivec) +set_source_files_properties(${SIMD_SOURCES} PROPERTIES + COMPILE_FLAGS -maltivec) -add_library(simd OBJECT ${SIMD_SOURCES}) +add_library(simd OBJECT ${SIMD_SOURCES} powerpc/jsimd.c) if(CMAKE_POSITION_INDEPENDENT_CODE OR ENABLE_SHARED) set_target_properties(simd PROPERTIES POSITION_INDEPENDENT_CODE 1) -- 2.40.0