yara: use opt_prefix to find pcre

This commit is contained in:
Jack Nagel 2013-04-04 17:22:26 -05:00
parent 1cebf23f66
commit a766e9467a

View file

@ -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",