From: Rosen Penev Date: Thu, 3 Jun 2021 20:21:13 +0000 (-0700) Subject: libjpeg-turbo: fix compilation without NEON X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=730c582d291960e4d9fde5c381fea5d0db9de756;p=openwrt-packages.git libjpeg-turbo: fix compilation without NEON Signed-off-by: Rosen Penev --- 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/