From 2f4eaf26a035727f8541a432c8e48b75f817ac0a Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Sun, 2 Apr 2017 09:04:49 -0700 Subject: Use extend/OS mechanism for grep args --- Library/Homebrew/extend/os/mac/keg_relocate.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Homebrew/extend') diff --git a/Library/Homebrew/extend/os/mac/keg_relocate.rb b/Library/Homebrew/extend/os/mac/keg_relocate.rb index 476e5da4a..7b5bb11f9 100644 --- a/Library/Homebrew/extend/os/mac/keg_relocate.rb +++ b/Library/Homebrew/extend/os/mac/keg_relocate.rb @@ -131,6 +131,12 @@ class Keg mach_o_files end + def recursive_fgrep_args + # Don't recurse into symlinks; the man page says this is the default, but + # it's wrong. -O is a BSD-grep-only option. + "-lrO" + end + def self.file_linked_libraries(file, string) # Check dynamic library linkage. Importantly, do not perform for static # libraries, which will falsely report "linkage" to themselves. -- cgit v1.2.3