yara: use opt_prefix to find pcre
This commit is contained in:
parent
1cebf23f66
commit
a766e9467a
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue