Blame SOURCES/dhcp-sharedlib.patch

324fcf
diff --git a/client/Makefile.am b/client/Makefile.am
324fcf
index b85f5d2..b1ecf82 100644
324fcf
--- a/client/Makefile.am
324fcf
+++ b/client/Makefile.am
324fcf
@@ -15,6 +15,6 @@ dhclient_SOURCES = clparse.c dhclient.c dhc6.c \
324fcf
 		   scripts/bsdos scripts/freebsd scripts/linux scripts/macos \
324fcf
 		   scripts/netbsd scripts/nextstep scripts/openbsd \
324fcf
 		   scripts/solaris scripts/openwrt
324fcf
-dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a $(BIND_LIBS)
324fcf
+dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.la $(BIND_LIBS)
324fcf
 man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
324fcf
 EXTRA_DIST = $(man_MANS)
324fcf
diff --git a/common/tests/Makefile.am b/common/tests/Makefile.am
324fcf
index 196aa44..1ccaa05 100644
324fcf
--- a/common/tests/Makefile.am
324fcf
+++ b/common/tests/Makefile.am
324fcf
@@ -15,22 +15,22 @@ ATF_TESTS += alloc_unittest dns_unittest misc_unittest ns_name_unittest
324fcf
 alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c
324fcf
 alloc_unittest_LDADD = $(ATF_LDFLAGS)
324fcf
 alloc_unittest_LDADD += ../libdhcp.a  \
324fcf
-	../../omapip/libomapi.a $(BIND_LIBS)
324fcf
+	../../omapip/libomapi.la $(BIND_LIBS)
324fcf
 
324fcf
 dns_unittest_SOURCES = dns_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
324fcf
 dns_unittest_LDADD = $(ATF_LDFLAGS)
324fcf
 dns_unittest_LDADD += ../libdhcp.a  \
324fcf
-	../../omapip/libomapi.a $(BIND_LIBS)
324fcf
+	../../omapip/libomapi.la $(BIND_LIBS)
324fcf
 
324fcf
 misc_unittest_SOURCES = misc_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
324fcf
 misc_unittest_LDADD = $(ATF_LDFLAGS)
324fcf
 misc_unittest_LDADD += ../libdhcp.a  \
324fcf
-	../../omapip/libomapi.a $(BIND_LIBS)
324fcf
+	../../omapip/libomapi.la $(BIND_LIBS)
324fcf
 
324fcf
 ns_name_unittest_SOURCES = ns_name_test.c $(top_srcdir)/tests/t_api_dhcp.c
324fcf
 ns_name_unittest_LDADD = $(ATF_LDFLAGS)
324fcf
 ns_name_unittest_LDADD += ../libdhcp.a  \
324fcf
-	../../omapip/libomapi.a $(BIND_LIBS)
324fcf
+	../../omapip/libomapi.la $(BIND_LIBS)
324fcf
 
324fcf
 check: $(ATF_TESTS)
324fcf
 	@if test $(top_srcdir) != ${top_builddir}; then \
324fcf
diff --git a/configure.ac b/configure.ac
324fcf
index f594cfa..adc98a8 100644
324fcf
--- a/configure.ac
324fcf
+++ b/configure.ac
324fcf
@@ -47,7 +47,8 @@ AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = "yes")
324fcf
 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
324fcf
 AC_USE_SYSTEM_EXTENSIONS
324fcf
 
324fcf
-AC_PROG_RANLIB
324fcf
+# Use libtool to simplify building of shared libraries
324fcf
+AC_PROG_LIBTOOL
324fcf
 
324fcf
 AC_PATH_PROG(AR, ar)
324fcf
 AC_SUBST(AR)
324fcf
diff --git a/dhcpctl/Makefile.am b/dhcpctl/Makefile.am
324fcf
index fa20a78..dd016e4 100644
324fcf
--- a/dhcpctl/Makefile.am
324fcf
+++ b/dhcpctl/Makefile.am
324fcf
@@ -1,17 +1,17 @@
324fcf
 BIND_LIBS = @BIND_LIBS@
324fcf
 
324fcf
 bin_PROGRAMS = omshell
324fcf
-lib_LIBRARIES = libdhcpctl.a
324fcf
+lib_LTLIBRARIES = libdhcpctl.la
324fcf
 noinst_PROGRAMS = cltest
324fcf
 man_MANS = omshell.1 dhcpctl.3
324fcf
 EXTRA_DIST = $(man_MANS)
324fcf
 
324fcf
 omshell_SOURCES = omshell.c
324fcf
-omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
324fcf
+omshell_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \
324fcf
 	        $(BIND_LIBS)
324fcf
 
324fcf
-libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
324fcf
+libdhcpctl_la_SOURCES = dhcpctl.c callback.c remote.c
324fcf
 
324fcf
 cltest_SOURCES = cltest.c
324fcf
-cltest_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
324fcf
+cltest_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \
324fcf
 	       $(BIND_LIBS)
324fcf
diff --git a/omapip/Makefile.am b/omapip/Makefile.am
324fcf
index b0d2680..265bcef 100644
324fcf
--- a/omapip/Makefile.am
324fcf
+++ b/omapip/Makefile.am
324fcf
@@ -1,9 +1,9 @@
324fcf
 BIND_LIBS = @BIND_LIBS@
324fcf
 
324fcf
-lib_LIBRARIES = libomapi.a
324fcf
+lib_LTLIBRARIES = libomapi.la
324fcf
 noinst_PROGRAMS = svtest
324fcf
 
324fcf
-libomapi_a_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
324fcf
+libomapi_la_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
324fcf
 		     errwarn.c listener.c dispatch.c generic.c support.c \
324fcf
 		     handle.c message.c convert.c hash.c auth.c inet_addr.c \
324fcf
 		     array.c trace.c toisc.c iscprint.c isclib.c
324fcf
@@ -12,5 +12,5 @@ man_MANS = omapi.3
324fcf
 EXTRA_DIST = $(man_MANS)
324fcf
 
324fcf
 svtest_SOURCES = test.c
324fcf
-svtest_LDADD = libomapi.a $(BIND_LIBS)
324fcf
+svtest_LDADD = libomapi.la $(BIND_LIBS)
324fcf
 
324fcf
diff --git a/relay/Makefile.am b/relay/Makefile.am
324fcf
index c9a1cba..316a524 100644
324fcf
--- a/relay/Makefile.am
324fcf
+++ b/relay/Makefile.am
324fcf
@@ -4,7 +4,7 @@ AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"'
324fcf
 
324fcf
 sbin_PROGRAMS = dhcrelay
324fcf
 dhcrelay_SOURCES = dhcrelay.c
324fcf
-dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
324fcf
+dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
324fcf
 		 $(BIND_LIBS)
324fcf
 man_MANS = dhcrelay.8
324fcf
 EXTRA_DIST = $(man_MANS)
324fcf
diff --git a/server/Makefile.am b/server/Makefile.am
324fcf
index 30cf2b1..f56f310 100644
324fcf
--- a/server/Makefile.am
324fcf
+++ b/server/Makefile.am
324fcf
@@ -15,8 +15,8 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c confpars.c db.c class.c failover.c \
324fcf
 		dhcpv6.c mdb6.c ldap.c ldap_casa.c leasechain.c ldap_krb_helper.c
324fcf
 
324fcf
 dhcpd_CFLAGS = $(LDAP_CFLAGS)
324fcf
-dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
324fcf
-	      ../dhcpctl/libdhcpctl.a $(BIND_LIBS) $(LDAP_LIBS)
324fcf
+dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
324fcf
+	      ../dhcpctl/libdhcpctl.la $(BIND_LIBS) $(LDAP_LIBS)
324fcf
 
324fcf
 man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
324fcf
 EXTRA_DIST = $(man_MANS)
324fcf
diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am
324fcf
index 771de06..8d8a2c1 100644
324fcf
--- a/server/tests/Makefile.am
324fcf
+++ b/server/tests/Makefile.am
324fcf
@@ -20,8 +20,8 @@ DHCPSRC = ../dhcp.c ../bootp.c ../confpars.c ../db.c ../class.c      \
324fcf
           ../ddns.c ../dhcpleasequery.c ../dhcpv6.c ../mdb6.c        \
324fcf
           ../ldap.c ../ldap_casa.c ../dhcpd.c ../leasechain.c
324fcf
 
324fcf
-DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a \
324fcf
-          $(top_builddir)/dhcpctl/libdhcpctl.a $(BIND_LIBS)
324fcf
+DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.la \
324fcf
+          $(top_builddir)/dhcpctl/libdhcpctl.la $(BIND_LIBS)
324fcf
 
324fcf
 ATF_TESTS =
324fcf
 if HAVE_ATF