From 89c904c27a1f6a7551b8d2559cf18bbac7464c67 Mon Sep 17 00:00:00 2001 From: Grzegorz Blach Date: Fri, 18 Sep 2020 19:21:32 +0200 Subject: [PATCH] package/graphicsmagick: enable OpenMP when supported by toolchain Signed-off-by: Grzegorz Blach Signed-off-by: Thomas Petazzoni --- package/graphicsmagick/graphicsmagick.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/graphicsmagick/graphicsmagick.mk b/package/graphicsmagick/graphicsmagick.mk index da7af5b53e..ab00ee2c9e 100644 --- a/package/graphicsmagick/graphicsmagick.mk +++ b/package/graphicsmagick/graphicsmagick.mk @@ -21,7 +21,6 @@ GRAPHICSMAGICK_CONFIG_SCRIPTS += GraphicsMagick++-config endif GRAPHICSMAGICK_CONF_OPTS = \ - --disable-openmp \ --without-dps \ --without-fpx \ --without-jbig \ @@ -33,6 +32,12 @@ GRAPHICSMAGICK_CONF_OPTS = \ GRAPHICSMAGICK_DEPENDENCIES = host-pkgconf +ifeq ($(BR2_TOOLCHAIN_HAS_OPENMP),y) +GRAPHICSMAGICK_CONF_OPTS += --enable-openmp +else +GRAPHICSMAGICK_CONF_OPTS += --disable-openmp +endif + ifeq ($(BR2_PACKAGE_FREETYPE),y) GRAPHICSMAGICK_CONF_OPTS += --with-ttf GRAPHICSMAGICK_CONF_ENV += ac_cv_path_freetype_config=$(STAGING_DIR)/usr/bin/freetype-config -- 2.30.2