- or download this
...
WriteMakefile(
...
LDDLFLAGS => $Config{lddlflags}." -Wl,-rpath,$ENV{ORIGIN}/../lib",
+ # <-- add this
@extras
);
- or download this
$ ORIGIN=/usr/local/foo/bar perl Makefile.PL
Writing Makefile for XML::Parser::Expat
...
$ readelf -d ./blib/arch/auto/XML/Parser/Expat/Expat.so | grep Lib
0x000000000000000f (RPATH) Library rpath: [/usr/local/fo
+o/bar/../lib]
0x000000000000001d (RUNPATH) Library runpath: [/usr/local/
+foo/bar/../lib]
- or download this
WriteMakefile(
NAME => 'XML::Parser::Expat',
...
},
@extras
);
- or download this
$ ORIGIN=/usr/local/foo/bar perl Makefile.PL
Writing Makefile for XML::Parser::Expat
...
$ readelf -d ./blib/arch/auto/XML/Parser/Expat/Expat.so | grep Lib
0x000000000000000f (RPATH) Library rpath: [/usr/local/fo
+o/bar/../lib]
0x000000000000001d (RUNPATH) Library runpath: [/usr/local/
+foo/bar/../lib]