Robust, modern reimplementation of patchelf based on the LIEF
brew install lief-patchelf
lief-patchelf