Help for this page

Select Code to Download


  1. or download this
    ...
    WriteMakefile(
    ...
        LDDLFLAGS => $Config{lddlflags}." -Wl,-rpath,$ENV{ORIGIN}/../lib",
    +    # <-- add this
        @extras
    );
    
  2. 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]
    
  3. or download this
    WriteMakefile(
        NAME    => 'XML::Parser::Expat',
    ...
        },
        @extras
    );
    
  4. 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]