in reply to Re^3: Editing RPATH of Perl module XML::Parser
in thread Editing RPATH of Perl module XML::Parser
Hi, unfortunately neither prepending LDDLFLAGS="-R$ORIGIN/../lib" to "perl Makefile.PL" nor editing the Makefile.PL:
WriteMakefile1( ABSTRACT_FROM => 'Parser.pm', AUTHOR => 'Clark Cooper (coopercc@netheaven.com)', LICENSE => 'perl', MIN_PERL_VERSION => '5.00405', META_MERGE => { resources => { repository => 'http://github.com/chorny/XML-Parser', }, }, #BUILD_REQUIRES => { #}, NAME => 'XML::Parser', DIR => [qw(Expat)], dist => {COMPRESS => 'gzip', SUFFIX => '.gz'}, VERSION_FROM => 'Parser.pm', PREREQ_PM => { LWP => 0, #for tests }, $^O =~/win/i ? ( dist => { TAR => 'ptar', TARFLAGS => '-c -C -f', }, ) : (), dynamic_lib => { OTHERLDFLAGS => "-Wl,-rpath,\$ORIGIN/../lib" }, @extras );
did work. In fact when I make, see the LD_RUN_PATH variable (it's always the same):
Running Mkbootstrap for XML::Parser::Expat () chmod 644 Expat.bs rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.so LD_RUN_PATH="/root/perl5/lib" cc -shared -O2 -L/usr/local/lib -fstack +-protector Expat.o -o ../blib/arch/auto/XML/Parser/Expat/Expat.so + \ -L/root/perl5/lib -lexpat \ chmod 755 ../blib/arch/auto/XML/Parser/Expat/Expat.so
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Editing RPATH of Perl module XML::Parser
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 |