Alien::patchelf - Alien module for the patchelf utility
use Alien::patchelf; my $pe = Alien::patchelf->new; my ($stdout, $stderr, @errors) = $pe->patchelf('--print-rpath', '/path/to/some/library.so');
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.
This module inherits from Alien:::Base so all of those methods are available.
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.
Please send any bugs, suggestions, or feature requests to https://github.com/shawnlaffan/perl-alien-patchelf/issues.
Shawn Laffan, <shawnlaffan@gmail.com>
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.