aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/osquery.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/osquery.rb b/Library/Formula/osquery.rb
index 1f0512120..7bc0c02f5 100644
--- a/Library/Formula/osquery.rb
+++ b/Library/Formula/osquery.rb
@@ -35,6 +35,12 @@ class Osquery < Formula
end
def install
+ # Apply upstream commit to fix illegal hardware instruction:
+ # https://github.com/facebook/osquery/commit/20259a
+ # https://github.com/facebook/osquery/issues/563
+ # https://github.com/Homebrew/homebrew/issues/35343
+ inreplace "CMakeLists.txt", "-Wl,-all_load", "-Wl,-force_load"
+
ENV.prepend_create_path "PYTHONPATH", buildpath+"third-party/python/lib/python2.7/site-packages"
resources.each do |r|