Thanks for your answer but, unfortunately, it doesn't work.
Actually I've already tried with LDFLAGS but it seems that it doesn't apply to Perl modules (I mean the compiled ".so" files that are placed inside the Perl libraries folder).
You can see it in detail here:
cpan[1]> look XML::Parser debian:~/.cpan/build/XML-Parser-2.41-eA1hds# export LDFLAGS="-R$ORIGIN +/../lib" debian:~/.cpan/build/XML-Parser-2.41-QQ3gvQ# export LD_LIBRARY_PATH=/r +oot/perl5/lib debian:~/.cpan/build/XML-Parser-2.41-eA1hds# perl Makefile.PL EXPATLIB +PATH=/root/perl5/lib EXPATINCPATH=/root/perl5/include Checking if your kit is complete... Looks good Writing Makefile for XML::Parser::Expat Writing MYMETA.yml and MYMETA.json Writing Makefile for XML::Parser Writing MYMETA.yml and MYMETA.json debian:~/.cpan/build/XML-Parser-2.41-QQ3gvQ# make && make install debian:~/.cpan/build/XML-Parser-2.41-QQ3gvQ# readelf -d ./blib/arch/au +to/XML/Parser/Expat/Expat.so | grep RPATH 0x0000000f (RPATH) Library rpath: [/root/perl5/lib]
The last line shows "/root/perl5/lib" instead of the correct "../lib".
In reply to Re^2: Editing RPATH of Perl module XML::Parser
by virtualdj
in thread Editing RPATH of Perl module XML::Parser
by virtualdj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |