autotool.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. diff -Nur squid-3.1.11.orig/configure.ac squid-3.1.11/configure.ac
  2. --- squid-3.1.11.orig/configure.ac 2011-02-08 05:07:06.000000000 +0100
  3. +++ squid-3.1.11/configure.ac 2011-03-04 23:03:25.000000000 +0100
  4. @@ -3913,6 +3913,9 @@
  5. fi
  6. AC_SUBST(XTRA_LIBS)
  7. +CXX_FOR_BUILD="g++"
  8. +AC_SUBST(CXX_FOR_BUILD)
  9. +
  10. dnl Clean up after OSF/1 core dump bug
  11. rm -f core
  12. diff -Nur squid-3.1.11.orig/src/Makefile.am squid-3.1.11/src/Makefile.am
  13. --- squid-3.1.11.orig/src/Makefile.am 2011-02-08 05:05:51.000000000 +0100
  14. +++ squid-3.1.11/src/Makefile.am 2011-03-04 23:16:39.000000000 +0100
  15. @@ -732,6 +732,8 @@
  16. # Make location configure settings available to the code
  17. DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
  18. +CXX_FOR_BUILD ?= @CXX_FOR_BUILD@
  19. +
  20. snmp_core.o snmp_agent.o: ../snmplib/libsnmp.a $(top_srcdir)/include/cache_snmp.h
  21. globals.cc: globals.h mk-globals-c.pl
  22. @@ -753,6 +755,11 @@
  23. squid.conf.default squid.conf.documented: cf_parser.cci
  24. true
  25. +cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
  26. + $(CXX_FOR_BUILD) -o $@ $(srcdir)/cf_gen.cc \
  27. + $(top_srcdir)/lib/util.c $(top_srcdir)/compat/assert.cc \
  28. + -DNDEBUG -DBUILD_HOST_TOOL ${INCLUDES} ${CXXFLAGS_FOR_BUILD}
  29. +
  30. cf_parser.cci: cf.data cf_gen$(EXEEXT)
  31. ./cf_gen cf.data $(srcdir)/cf.data.depend