From: Ian Silvester <iansilvester@fastmail.fm>
Date: Thu, 22 Mar 2012 01:12:41 +0000 (+0000)
Subject: Add compiler and linker flags to make gcc look in /usr/local/ for dependencies (so... 
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/faq/@default-cgi@toggle?a=commitdiff_plain;h=189abce4eb5c137fcfcd6d6c7718dedf5d05cbea;p=OSXPackageBuilder.git

Add compiler and linker flags to make gcc look in /usr/local/ for dependencies (so as to detect an external pcre installation, if present)
---

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