mjpegtools: fix build on powerpc without altivec
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 22 Aug 2018 20:30:08 +0000 (22:30 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 23 Aug 2018 10:14:38 +0000 (12:14 +0200)
commit0901b09a699ab3f54c193e3349d925b436c64642
tree7a886a8207742cce49c7113b20fc05137b813b20
parentb3c1f0869645b136b9399d7a93acca65957e0bfe
mjpegtools: fix build on powerpc without altivec

mpjegtools fails to build on powerpc without altivec:

build_sub44_mests.c: In function 'build_sub44_mests_altivec':
build_sub44_mests.c:268:9: internal compiler error: Segmentation fault
     vr1 = vec_ld(rowstride, (unsigned char*)s44blk);

It seems mpjegtools is wrongly detecting altivec support:
configure:   - PowerPC Optimizations:
configure:     - AltiVec enabled             : true

Fix this by adding BR2_PACKAGE_MJPEGTOOLS_SIMD_SUPPORT and setting
--enable-simd-accel / --disable-simd-accel

Fixes:
 - http://autobuild.buildroot.net/results/c9464712f43efb8954fd2e5460126ad193660353

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mjpegtools/Config.in
package/mjpegtools/mjpegtools.mk