LD_RUN_PATH not set correctly for PerlMagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
qwerty
Posts: 5
Joined: 2011-02-24T08:33:58-07:00
Authentication code: 8675308

LD_RUN_PATH not set correctly for PerlMagick

Post by qwerty »

I am build ImageMagick-6.6.7-10. When it gets around to building PerlMagick, the build process seems to be using the build directory for the ImageMagick libraries, not the install directory.

In the following, /tmp/bbb is the build directory (where the IM source is untarred into) and /tmp/iii is the --prefix directory.
The configure line command is:

./configure \
--disable-installed \
--enable-shared \
--prefix=/tmp/iii \
--with-perl=/tmp/foo/apps/builds/2011-02-02.001/perl/bin/perl \
--without-magick-plus-plus \
--without-xml \
--without-rsvg \
--without-openexr

After the IM libraries have been installed, I see the message:

----------------------------------------------------------------------
Libraries have been installed in:
/tmp/iii/lib

but when PerlMagick is built, I see:

...
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.so
LD_RUN_PATH="/tmp/bbb/ImageMagick-6.6.7-10/PerlMagick/../magick/.libs" cc -L../magick/.libs -lMagickCore -shared -O2 -L/usr/local/lib -fstack-protector Magick.o -o blib/arch/auto/Image/Magick/Magick.so \
-L/tmp/bbb/ImageMagick-6.6.7-10/PerlMagick/../magick/.libs -lMagickCore -lm \
...

Shouldn't the LD_RUN_PATH be set to /tmp/iii/lib ?
Post Reply