From 189abce4eb5c137fcfcd6d6c7718dedf5d05cbea Mon Sep 17 00:00:00 2001
From: Ian Silvester <iansilvester@fastmail.fm>
Date: Thu, 22 Mar 2012 01:12:41 +0000
Subject: [PATCH] Add compiler and linker flags to make gcc look in /usr/local/
 for dependencies (so as to detect an external pcre installation, if present)

---
 build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 35f7b43..0a47551 100755
--- a/build.sh
+++ b/build.sh
@@ -79,7 +79,7 @@ echo "Notice: configuring the privoxy software."
 cd ../${SOURCE_DIR}
 /usr/bin/autoheader
 /usr/bin/autoconf
-/usr/bin/env CFLAGS="${CFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" LDFLAGS="${LDFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" ./configure ${OPTS}
+/usr/bin/env CFLAGS="${CFLAGS} -I/usr/local/include/ ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" LDFLAGS="${LDFLAGS} -L/usr/local/lib ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" ./configure ${OPTS}
 
 #
 # clean, then make privoxy
-- 
2.49.0