Merge pull request #7656 from rmNULL/check-for-nil-when-patchelf-is-not-found
Instructions to install patchelf, when development tools cant locate …
This commit is contained in:
commit
2955181654
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user