From 730c582d291960e4d9fde5c381fea5d0db9de756 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 3 Jun 2021 13:21:13 -0700 Subject: [PATCH] libjpeg-turbo: fix compilation without NEON Signed-off-by: Rosen Penev --- libs/libjpeg-turbo/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/libjpeg-turbo/Makefile b/libs/libjpeg-turbo/Makefile index bc84e929b..ba29eb13c 100644 --- a/libs/libjpeg-turbo/Makefile +++ b/libs/libjpeg-turbo/Makefile @@ -62,6 +62,12 @@ CMAKE_OPTIONS += \ -DWITH_SIMD=O$(if $(findstring mips,$(CONFIG_ARCH)),FF,N) \ -DWITH_TURBOJPEG=OFF +ifneq ($(findstring arm,$(CONFIG_ARCH)),) +ifeq ($(findstring neon,$(CONFIG_CPU_TYPE)),) + CMAKE_OPTIONS += -DWITH_SIMD=OFF +endif +endif + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/