libjpeg-turbo: fix compilation without NEON
authorRosen Penev <redacted>
Thu, 3 Jun 2021 20:21:13 +0000 (13:21 -0700)
committerRosen Penev <redacted>
Thu, 3 Jun 2021 20:21:52 +0000 (13:21 -0700)
Signed-off-by: Rosen Penev <redacted>
libs/libjpeg-turbo/Makefile

index bc84e929bc3a3dd071a2c7bcb12a6717e79409f1..ba29eb13c31e6b1b4bbb98e0fc0a2044ff3e0812 100644 (file)
@@ -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/
git clone https://git.99rst.org/PROJECT