aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorTim D. Smith2017-04-02 09:04:49 -0700
committerTim D. Smith2017-04-02 09:04:49 -0700
commit2f4eaf26a035727f8541a432c8e48b75f817ac0a (patch)
tree33dcbc52a8be466518bfb1fa8ff0e472650e92b5 /Library/Homebrew/extend
parentd0feae0632e29194d09a26adf961a05de760a22a (diff)
downloadbrew-2f4eaf26a035727f8541a432c8e48b75f817ac0a.tar.bz2
Use extend/OS mechanism for grep args
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/os/mac/keg_relocate.rb6
1 files changed, 6 insertions, 0 deletions
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.