summaryrefslogtreecommitdiff
path: root/package/tinyproxy
diff options
context:
space:
mode:
Diffstat (limited to 'package/tinyproxy')
-rw-r--r--package/tinyproxy/Makefile6
-rw-r--r--package/tinyproxy/patches/patch-configure_ac22
2 files changed, 26 insertions, 2 deletions
diff --git a/package/tinyproxy/Makefile b/package/tinyproxy/Makefile
index 12e01de18..1819505e1 100644
--- a/package/tinyproxy/Makefile
+++ b/package/tinyproxy/Makefile
@@ -16,10 +16,12 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,TINYPROXY,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-CONFIGURE_STYLE:= gnu
+CONFIGURE_STYLE:= autoconf gnu
BUILD_STYLE:= auto
INSTALL_STYLE:= auto
-CONFIGURE_ENV+= ac_cv_header_libintl_h=no
+CONFIGURE_ENV+= ac_cv_header_libintl_h=no \
+ ac_cv_lib_nsl_gethostbyaddr=no \
+ ac_cv_lib_nsl_gethostname=no
ifeq (${ADK_COMPILE_TINYPROXY_WITH_TRANSPARENT_PROXY},y)
CONFIGURE_ARGS+= --enable-transparent-proxy
diff --git a/package/tinyproxy/patches/patch-configure_ac b/package/tinyproxy/patches/patch-configure_ac
new file mode 100644
index 000000000..89f060026
--- /dev/null
+++ b/package/tinyproxy/patches/patch-configure_ac
@@ -0,0 +1,22 @@
+--- tinyproxy-1.6.4.orig/configure.ac 2008-08-24 08:58:43.000000000 +0200
++++ tinyproxy-1.6.4/configure.ac 2009-06-04 23:49:30.000000000 +0200
+@@ -124,8 +124,8 @@ if test x"$transparent_enabled" = x"yes"
+ fi
+
+ dnl Include support for a statically compiled tinyproxy
+-AC_ARG_ENABLE(static,
+- [AC_HELP_STRING([--enable-static],
++AC_ARG_ENABLE(static-bin,
++ [AC_HELP_STRING([--enable-static-bin],
+ [Statically link tinyproxy (default is NO)])],
+ [LDFLAGS="-static $LDFLAGS"])
+
+@@ -254,7 +254,7 @@ if test x"$debug_enabled" = x"yes" ; the
+ fi
+ else
+ dnl No debugging information, include the optimizations
+- CFLAGS="-O2 -DNDEBUG $CFLAGS"
++ CFLAGS="$CFLAGS"
+ YFLAGS="-d"
+ fi
+