From: Grzegorz Blach Date: Fri, 18 Sep 2020 17:21:32 +0000 (+0200) Subject: package/graphicsmagick: enable OpenMP when supported by toolchain X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89c904c27a1f6a7551b8d2559cf18bbac7464c67;p=buildroot.git package/graphicsmagick: enable OpenMP when supported by toolchain Signed-off-by: Grzegorz Blach Signed-off-by: Thomas Petazzoni --- 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