To be linked with LIBOBJS requires full local library status.
To prevet naming clashes rename as libcompat-squid
# 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 \
GnuRegex.h \
GnuRegex.c
-libcompat_la_LIBADD= $(LIBOBJS)
+libcompat_squid_a_LIBADD= $(LIBOBJS)
check_PROGRAMS += testPreCompiler
TESTS += testPreCompiler
*/
#ifndef _SYS_EUI64_H
#define _SYS_EUI64_H
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* Size of the ASCII representation of an EUI-64.
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 */
## 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)
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