in reply to Re: Editing RPATH of Perl module XML::Parser
in thread Editing RPATH of Perl module XML::Parser
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".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Editing RPATH of Perl module XML::Parser
by Eliya (Vicar) on Dec 13, 2011 at 20:11 UTC | |
by virtualdj (Initiate) on Dec 14, 2011 at 18:20 UTC | |
by Eliya (Vicar) on Dec 14, 2011 at 19:22 UTC | |
by virtualdj (Initiate) on Dec 15, 2011 at 17:14 UTC | |
by Anonymous Monk on Dec 14, 2011 at 19:29 UTC |