imagemagick: remove lto for GCC10 13638/head
authorRosen Penev <rosenp@gmail.com>
Sun, 11 Oct 2020 23:57:01 +0000 (16:57 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 12 Oct 2020 02:12:53 +0000 (19:12 -0700)
It does not work with GCC10.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
multimedia/imagemagick/Makefile

index 3da216080e30850eb3a209bd072e90ff89a31e02..48242513182d354e65f59f1c8aedb41448a7e3d1 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=imagemagick
 PKG_VERSION:=7.0.9
 PKG_REVISION:=5
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REVISION).tar.gz
@@ -109,7 +109,7 @@ CONFIGURE_ARGS += \
        --with-png \
        --with-tiff
 
-TARGET_CFLAGS += -flto
+TARGET_CFLAGS += $(if $(CONFIG_GCC_USE_VERSION_10),,-flto)
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include