From b827d2e68e2f604b1c5724b3ddd5d116274da4b6 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 4 Apr 2013 17:22:26 -0500 Subject: yara: use opt_prefix to find pcre --- Library/Formula/yara.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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", -- cgit v1.2.3