[email protected] (Jan Beich) wrote
  in <[email protected]>:

jb> Hiroki Sato <[email protected]> writes:
jb>
jb> >  I did not able to reproduce it even if ImageMagick was built with the
jb> >  OpenMP option.  I guess your environment has another issue which
jb> >  pulls -lomp into the build process.
jb>
jb> Clang >= 3.7 no longer ignores -fopenmp which now requires libomp.so
jb> from devel/openmp (for base compiler) or devel/llvm* built with OPENMP=on.
jb>
jb> For example:
jb>   1. Use FreeBSD >= 11.0
jb>   2. Install graphics/ImageMagick with OPENMP=on
jb>   3. Deinstall devel/openmp (just in case)
jb>   4. Build the port with default compiler
jb>
jb> The obvious fix is teach ImageMagick to not pollute namespace as nothing
jb> in its public API uses #pragma omp or omp_ symbols.

 So is the attached patch safe to avoid this?

-- Hiroki
Index: graphics/ImageMagick/files/patch-configure
===================================================================
--- graphics/ImageMagick/files/patch-configure	(nonexistent)
+++ graphics/ImageMagick/files/patch-configure	(working copy)
@@ -0,0 +1,10 @@
+--- configure.orig	2017-01-03 02:07:28.432298000 +0900
++++ configure	2017-01-03 02:09:38.248392000 +0900
+@@ -11691,7 +11691,6 @@
+
+
+ CFLAGS="$OPENMP_CFLAGS $CFLAGS"
+-MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
+
+ if test "$enable_openmp" != no; then
+   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then

Property changes on: graphics/ImageMagick/files/patch-configure
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property

Attachment: pgpJ_4clr0RzA.pgp
Description: PGP signature

Reply via email to