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
|