Added compilation optimisation flags to improve performance at the cost of increased...
[OSXPackageBuilder.git] / build.sh
index 447b48d..d7b12dd 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -84,10 +84,10 @@ fi
 echo ""
 echo "Notice: configuring the privoxy software."
 cd ../${SOURCE_DIR}
-/usr/bin/autoheader
-/usr/bin/autoconf
+autoheader
+autoconf
 
-/usr/bin/env CFLAGS="${CFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" LDFLAGS="${LDFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" ./configure ${OPTS}
+/usr/bin/env CFLAGS="-O2 -mdynamic-no-pic ${CFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" LDFLAGS="${LDFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" ./configure ${OPTS}
 
 #
 # clean, then make privoxy