This patch is Solaris-specific and thus will not be contributed upstream.
--- ImageMagick-6.8.3/PerlMagick/Makefile.am.~1~ 2013-02-13 15:22:54.000000000 -0800
+++ ImageMagick-6.8.3/PerlMagick/Makefile.am 2015-02-10 20:35:39.222565738 -0800
@@ -59,7 +59,7 @@
install-exec-perl: $(PERLMAKEFILE)
( cd $(PERLMAGICK) && $(MAKE) CC='@CC@' && \
- $(MAKE) CC='@CC@' install )
+ $(MAKE) CC='@CC@' LD_RUN_PATH="" install )
all-perl: perl-sources
@@ -67,7 +67,8 @@
echo "Uninstall not supported for PerlMagick"
check-perl: $(PERLMAKEFILE)
- cd $(PERLMAGICK) && $(abs_top_builddir)/magick.sh $(MAKE) CC='@CC@' test
+ cd $(PERLMAGICK) && $(abs_top_builddir)/magick.sh \
+ $(MAKE) CC='@CC@' LD_RUN_PATH="" test
perl-build: $(PERLMAKEFILE)
( cd $(PERLMAGICK) && $(MAKE) CC='@CC@' )
--- ImageMagick-6.9.4/Makefile.in.~1~ 2016-05-09 10:29:28.000000000 -0700
+++ ImageMagick-6.9.4/Makefile.in 2016-05-10 09:07:02.124054239 -0700
@@ -11497,7 +11497,7 @@
@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@install-exec-perl: $(PERLMAKEFILE)
@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ ( cd $(PERLMAGICK) && $(MAKE) CC='@CC@' && \
-@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ $(MAKE) CC='@CC@' install )
+@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ $(MAKE) CC='@CC@' LD_RUN_PATH="" install )
@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@all-perl: perl-sources
@@ -11505,7 +11505,7 @@
@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ echo "Uninstall not supported for PerlMagick"
@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@check-perl: $(PERLMAKEFILE)
-@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ cd $(PERLMAGICK) && $(abs_top_builddir)/magick.sh $(MAKE) CC='@CC@' test
+@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ cd $(PERLMAGICK) && $(abs_top_builddir)/magick.sh $(MAKE) CC='@CC@' LD_RUN_PATH="" test
@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@perl-build: $(PERLMAKEFILE)
@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ ( cd $(PERLMAGICK) && $(MAKE) CC='@CC@' )