NAME

Alien::patchelf - Alien module for the patchelf utility

SYNOPSIS

use Alien::patchelf;

my $pe = Alien::patchelf->new;
my ($stdout, $stderr, @errors)
  = $pe->patchelf('--print-rpath', '/path/to/some/library.so');

DESCRIPTION

Sometimes you need to change the rpath of binary files, for example for aliens that are installed in non-standard locations. The patchelf utility is used for this purpose.

This is not useful on Windows since dynamic libs are loaded from the PATH.

As with most aliens, if your system provides the patchelf utility then that will be used. If not then it will be downloaded and installed for you.

METHODS

This module inherits from Alien:::Base so all of those methods are available.

patchelf

Runs the patchelf command, passing any arguments through. Uses a system call via Capture::Tiny, and it is up to the caller to handle the results.

REPORTING BUGS

Please send any bugs, suggestions, or feature requests to https://github.com/shawnlaffan/perl-alien-patchelf/issues.

SEE ALSO

Alien::Build

AUTHORS

Shawn Laffan, <shawnlaffan@gmail.com>

COPYRIGHT AND LICENSE

Copyright 2022- by Shawn Laffan

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.