]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Convert compat library to a full library.
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 3 Oct 2010 14:42:04 +0000 (08:42 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 3 Oct 2010 14:42:04 +0000 (08:42 -0600)
To be linked with LIBOBJS requires full local library status.

To prevet naming clashes rename as libcompat-squid

compat/Makefile.am
compat/eui64_aton.h
src/Common.am
test-suite/Makefile.am

index 8181370f4c79fbfa7f29e668949233451dfa58a8..03494f72a4b80dc84c584751d23c64157fb65410 100644 (file)
@@ -9,8 +9,8 @@ include $(top_srcdir)/src/Common.am
 
 # Port Specific Configurations
 
-noinst_LTLIBRARIES = libcompat.la
-libcompat_la_SOURCES = \
+noinst_LIBRARIES = libcompat-squid.a
+libcompat_squid_a_SOURCES = \
        assert.h \
        compat.h \
        compat_shared.h \
@@ -57,7 +57,7 @@ libcompat_la_SOURCES = \
        GnuRegex.h \
        GnuRegex.c
 
-libcompat_la_LIBADD= $(LIBOBJS)
+libcompat_squid_a_LIBADD= $(LIBOBJS)
 
 check_PROGRAMS += testPreCompiler
 TESTS += testPreCompiler
index 98caeeed1a5f13a68dcf595800e82b5d603aa9c2..903ddfea65cb20884a15d999229bf4c5c31840c8 100644 (file)
@@ -46,6 +46,9 @@
  */
 #ifndef _SYS_EUI64_H
 #define _SYS_EUI64_H
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /**
  * Size of the ASCII representation of an EUI-64.
@@ -64,10 +67,10 @@ struct eui64 {
     u_char octet[EUI64_LEN];
 };
 
+int eui64_aton(const char *a, struct eui64 *e);
 #ifdef __cplusplus
-extern "C"
+}
 #endif
-int eui64_aton(const char *a, struct eui64 *e);
 
 #endif /* !_SYS_EUI64_H */
 #endif /* HAVE_SYS_EUI64_H */
index 96a08812a52daadffd2e8946cb3590d06ea7f273..9e71907d9adef0de5472f665012e7710adf37a5e 100644 (file)
@@ -38,7 +38,7 @@ $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h
 ## NP: libmisc util.cc depends on rint from math library
 COMPAT_LIB = \
        -L$(top_builddir)/lib -lmiscutil \
-       $(top_builddir)/compat/libcompat.la
+       -L$(top_builddir)/compat -lcompat-squid
 
 ## Some helpers are written in Perl and need the local shell defined properly
 subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1)
index 513aea4c4f49ffca0644c2f9ff4878a44db3380b..0a7bc208868c92d097d8e66847e0588a52b3f2bb 100644 (file)
@@ -12,8 +12,7 @@ AUTOMAKE_OPTIONS = subdir-objects
 INCLUDES += -I$(srcdir)
 
 LDADD = \
-       $(top_builddir)/compat/libcompat.la \
-       -L$(top_builddir)/lib -lmiscutil \
+       $(COMPAT_LIB) \
        $(top_builddir)/src/globals.o \
        $(top_builddir)/src/time.o