Skip to content

Commit

Permalink
Merge pull request #18459 from Homebrew/missing-ld.so.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Sep 30, 2024
2 parents d767c96 + 65731fa commit cdc228a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/os/linux/ld.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def self.system_dirs
sig { params(conf_path: T.any(Pathname, String)).returns(T::Array[String]) }
def self.library_paths(conf_path = Pathname(sysconfdir)/"ld.so.conf")
conf_file = Pathname(conf_path)
return [] unless conf_file.exist?

paths = Set.new
directory = conf_file.realpath.dirname

Expand Down

0 comments on commit cdc228a

Please sign in to comment.