From 78ad1d4bf828db6b8cfa90386c680b6a0a4226c0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 21 Jan 2014 18:33:50 -0600 Subject: [PATCH] nginx: look for pcre in a more specific location --- Formula/nginx.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Formula/nginx.rb b/Formula/nginx.rb index cbfc00615f2..8cd851279a2 100644 --- a/Formula/nginx.rb +++ b/Formula/nginx.rb @@ -43,9 +43,10 @@ class Nginx < Formula # Changes default port to 8080 inreplace 'conf/nginx.conf', 'listen 80;', 'listen 8080;' + pcre = Formula.factory("pcre") openssl = Formula.factory("openssl") - cc_opt = "-I#{HOMEBREW_PREFIX}/include -I#{openssl.include}" - ld_opt = "-L#{HOMEBREW_PREFIX}/lib -L#{openssl.lib}" + cc_opt = "-I#{pcre.include} -I#{openssl.include}" + ld_opt = "-L#{pcre.lib} -L#{openssl.lib}" args = ["--prefix=#{prefix}", "--with-http_ssl_module",