aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/yara.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/yara.rb b/Library/Formula/yara.rb
index 9eb6501b3..dac1c4556 100644
--- a/Library/Formula/yara.rb
+++ b/Library/Formula/yara.rb
@@ -12,7 +12,8 @@ class Yara < Formula
ENV.append 'CFLAGS', '-std=gnu89' if ENV.compiler == :clang
# find Homebrew's libpcre
- ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
+ ENV.append 'LDFLAGS',
+ "-L#{Formula.factory('pcre').opt_prefix}/lib -lpcre"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",