aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-04-04 17:22:26 -0500
committerJack Nagel2013-04-04 17:22:26 -0500
commitb827d2e68e2f604b1c5724b3ddd5d116274da4b6 (patch)
treeda6912645ab1aa0034eaa0c424d998293ee5b51b /Library
parent7feae356ee589e9ce40544371ac0a9b06bfbd069 (diff)
downloadhomebrew-b827d2e68e2f604b1c5724b3ddd5d116274da4b6.tar.bz2
yara: use opt_prefix to find pcre
Diffstat (limited to 'Library')
-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",