aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ImageMagick/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ImageMagick/Makefile')
-rw-r--r--graphics/ImageMagick/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/ImageMagick/Makefile b/graphics/ImageMagick/Makefile
index a3fe28f13c1..838cf220251 100644
--- a/graphics/ImageMagick/Makefile
+++ b/graphics/ImageMagick/Makefile
@@ -57,7 +57,9 @@ MAN4= miff.4
MAN5= quantize.5
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
-.if defined(PERL_THREADED) && ${PERL_THREADED} == "true"
+# PerlMagick not works with threads, if perl is not threaded, and vice versa
+.if defined(WITH_IMAGEMAGICK_THREADS) || \
+ defined(PERL_THREADED) && ${PERL_THREADED} == "true"
CONFIGURE_ARGS+= --with-threads
.else
CONFIGURE_ARGS+= --without-threads