Instructions to install patchelf, when development tools cant locate patchelf.

This commit is contained in:
rmnull 2020-05-28 00:34:02 +05:30
parent 0b6ae538d1
commit 39c572b546
No known key found for this signature in database
GPG Key ID: 35BAB82D31EFAD91

View File

@ -19,6 +19,8 @@ class Keg
return if !file.elf? || !file.dynamic_elf? return if !file.elf? || !file.dynamic_elf?
patchelf = DevelopmentTools.locate "patchelf" patchelf = DevelopmentTools.locate "patchelf"
odie "Could not locate patchelf, please: brew install patchelf." if patchelf.nil?
cmd_rpath = [patchelf, "--print-rpath", file] cmd_rpath = [patchelf, "--print-rpath", file]
old_rpath = Utils.popen_read(*cmd_rpath, err: :out).strip old_rpath = Utils.popen_read(*cmd_rpath, err: :out).strip