rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
48 stars 13 forks source link

_chase_lib_darwin can return incorrect names for links under OSX. #3

Closed jmumbulla closed 7 years ago

jmumbulla commented 7 years ago

For example, when providing pp with the option -l /usr/local/opt/glib/lib/libgobject-2.0.0.dylib the _chase_lib_darwin sub will return its name as libgobject-2.0.dylib which then gets packed by pp. However, the application binary looks for libgobject-2.0.0.dylib which it will not be able to find.

Cwd::abs_path does the same thing and is in core, so replace _chase_lib_darwin with that.

rschupp commented 7 years ago

You didn't understand what the purpose of _chase_lib_darwin is. Anyway, I rewrote how we determine the name that a DLL will be referenced from its users (because that's the name we have to store it under in the packed executable) - at least, if you have "otool" installed. Please try fc7f8c06 or the 1.036_001 DEV release on CPAN.