Previous PR https://github.com/auriamg/macdylibbundler/pull/31 added support for finding libraries that used rpath references. However, that's not enough when creating a distributable. We also need to fix the LC_RPATH that binaries and shared libraries use. These is the list of changes:
Remove unused fixLibDependency in Utils
Reuse command variable to avoid shadowing in Dependency.cpp
Implement fixRpathsOnFile to modify the LC_RPATH of the file to fix along with its dependencies
Previous PR https://github.com/auriamg/macdylibbundler/pull/31 added support for finding libraries that used rpath references. However, that's not enough when creating a distributable. We also need to fix the
LC_RPATH
that binaries and shared libraries use. These is the list of changes:fixLibDependency
inUtils
command
variable to avoid shadowing inDependency.cpp
fixRpathsOnFile
to modify theLC_RPATH
of the file to fix along with its dependencies