graphicsmagick: fix compilation with GCC 10
authorRosen Penev <rosenp@gmail.com>
Mon, 30 Nov 2020 01:52:37 +0000 (17:52 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 1 Dec 2020 01:57:02 +0000 (17:57 -0800)
Same fix as in imagemagick.

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

index 7eb7d016ce49f48902b66cdda002b062aa824501..ff104fdebd34d43f545417085728e07d76450f30 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=graphicsmagick
 PKG_VERSION:=1.3.35
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/GraphicsMagick-$(PKG_VERSION)
 PKG_SOURCE:=GraphicsMagick-$(PKG_VERSION).tar.bz2
@@ -73,7 +73,7 @@ CONFIGURE_ARGS += \
        --without-zstd \
        --without-x
 
-TARGET_CFLAGS += -flto
+TARGET_CFLAGS += $(if $(CONFIG_GCC_USE_VERSION_10),,-flto)
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include