squid: needs host-libcap for cf_gen
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 29 Nov 2010 20:14:35 +0000 (21:14 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 29 Nov 2010 20:15:53 +0000 (21:15 +0100)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/squid/squid-cross-compile.patch
package/squid/squid.mk

index 6643b4d34189fb9fd26a0009940fe4e723af78fd..f2ce705f726f8e6f7a33d9320e6ae23224027cfb 100644 (file)
@@ -19,13 +19,21 @@ diff -Nura squid-3.1.8.orig/configure.in squid-3.1.8/configure.in
  
  dnl Select digest auth scheme helpers to build
  if test -n "$AUTH_MODULE_digest"; then
-@@ -2115,6 +2115,10 @@
+@@ -2115,6 +2115,18 @@
        ;;
  esac
  
 +dnl Define CXX_FOR_BUILD
 +CXX_FOR_BUILD="$CXX_FOR_BUILD"
 +AC_SUBST(CXX_FOR_BUILD)
++
++dnl Define CXXFLAGS_FOR_BUILD
++CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD"
++AC_SUBST(CXXFLAGS_FOR_BUILD)
++
++dnl Define LDFLAGS_FOR_BUILD
++LDFLAGS_FOR_BUILD="$LDFLAGS_FOR_BUILD"
++AC_SUBST(LDFLAGS_FOR_BUILD)
 +
  dnl Check for programs
  AC_PROG_CPP
@@ -47,7 +55,7 @@ diff -Nura squid-3.1.8.orig/src/Makefile.am squid-3.1.8/src/Makefile.am
        true
  
 +cf_gen$(EXEEXT): $(cf_gen_OBJECTS) $(cf_gen_DEPENDENCIES)
-+      $(CXX_FOR_BUILD) -o $@ $(srcdir)/cf_gen.cc \
++      $(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $(srcdir)/cf_gen.cc \
 +              $(top_srcdir)/lib/util.c \
 +              $(top_srcdir)/compat/assert.cc \
 +              $(cf_gen_LDADD) $(LIBS) ${INCLUDES}
index d45a4732659357715f2a2447a7bb10270cdbe3dc..313659f1205acdebe19aa4bbed813f95dcdd3381 100644 (file)
@@ -6,7 +6,7 @@
 
 SQUID_VERSION = 3.1.9
 SQUID_SITE = http://www.squid-cache.org/Versions/v3/3.1
-SQUID_DEPENDENCIES = libcap
+SQUID_DEPENDENCIES = libcap host-libcap
 SQUID_AUTORECONF = YES
 SQUID_CONF_ENV =       ac_cv_epoll_works=yes ac_cv_func_setresuid=yes \
                        ac_cv_func_va_copy=yes ac_cv_func___va_copy=yes \