]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: shuffle libcompat and libmisc into Common.am as COMPAT_LIB
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 Aug 2009 13:14:39 +0000 (01:14 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 Aug 2009 13:14:39 +0000 (01:14 +1200)
src/Common.am
src/Makefile.am
src/ip/Makefile.am

index 084f108ccae7a797bde88ec5940d726665d8d784..7f4c8d7fc21278f57105ffab0aa80ba2c39c7252 100644 (file)
@@ -23,3 +23,9 @@ INCLUDES = \
 ## make all compiled sources depend on generated files
 ## XXX: Do we really need this? Does auto-dependency tracking work?
 $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h
+
+
+## Because compatibility is almost universal. And the link order is important.
+COMPAT_LIB = \
+       -L$(top_builddir)/lib -lmiscutil \
+       $(top_builddir)/compat/libcompat.la
index ecc1e1038e61018b64c724aa4a0171008bacee93..4db4ec7b78d8114d47ac74c4ecf74c23c3c54772 100644 (file)
@@ -197,8 +197,7 @@ libexec_PROGRAMS = \
 cf_gen_SOURCES = cf_gen.cc
 nodist_cf_gen_HEADER = cf_gen_defines.h
 cf_gen_LDADD= \
-       ../compat/libcompat.la \
-       -L../lib -lmiscutil \
+       $(COMPAT_LIB) \
        @XTRA_LIBS@ \
        @EPOLL_LIBS@ \
        @MINGW_LIBS@
@@ -531,8 +530,6 @@ nodist_squid_SOURCES = \
 squid_LDADD = \
        $(COMMON_LIBS) \
        icmp/libicmp.la icmp/libicmp-core.la \
-        ../compat/libcompat.la \
-       -L../lib \
        @XTRA_OBJS@ \
        @DISK_LINKOBJS@ \
        @REPL_OBJS@ \
@@ -542,8 +539,8 @@ squid_LDADD = \
        @SNMPLIB@ \
        ${ADAPTATION_LIBS} \
        ${ESI_LIBS} \
+       $(COMPAT_LIB) \
        @SSLLIB@ \
-       -lmiscutil \
        @XTRA_LIBS@ \
        @EPOLL_LIBS@ \
        @MINGW_LIBS@ 
index dfbebd163497079d9d0c1b4ca4fbb7f4ea5e9ac5..38772857dd40aa296bd4d6d937a829fa4956b833 100644 (file)
@@ -21,9 +21,8 @@ testIpAddress_SOURCES= \
 nodist_testIpAddress_SOURCES= \
        ../tests/testMain.cc
 testIpAddress_LDADD= \
-       $(top_builddir)/compat/libcompat.la \
        libip.la \
-       -L$(top_builddir)/lib -lmiscutil \
+       $(COMPAT_LIB) \
        @SQUID_CPPUNIT_LA@ \
        @SQUID_CPPUNIT_LIBS@
 testIpAddress_LDFLAGS= $(LIBADD_DL)