LD_RUN_PATH not set correctly for PerlMagick
Posted: 2011-03-03T11:47:38-07:00
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 ?
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 ?