Skip to content
Snippets Groups Projects
Unverified Commit e79eeb75 authored by rmnull's avatar rmnull
Browse files

Bug Fix: Don't search for needed libraries on non DYNAMIC ELFs.

parent 982d8165
No related branches found
No related tags found
No related merge requests found
......@@ -175,6 +175,8 @@ module ELFShim
private
def needed_libraries(path)
return [nil, []] unless path.dynamic_elf?
if HOMEBREW_PATCHELF_RB
needed_libraries_using_patchelf_rb path
elsif DevelopmentTools.locate "readelf"
......@@ -194,8 +196,6 @@ module ELFShim
end
def needed_libraries_using_patchelf(path)
return [nil, []] unless path.dynamic_elf?
patchelf = DevelopmentTools.locate "patchelf"
if path.dylib?
command = [patchelf, "--print-soname", path.expand_path.to_s]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment