Blame SOURCES/dhcp-4.2.5-sharedlib.patch

54343e
diff -up dhcp-4.2.5b1/client/Makefile.am.sharedlib dhcp-4.2.5b1/client/Makefile.am
54343e
--- dhcp-4.2.5b1/client/Makefile.am.sharedlib	2012-12-17 16:26:53.350623790 +0100
54343e
+++ dhcp-4.2.5b1/client/Makefile.am	2012-12-17 16:26:53.384623342 +0100
54343e
@@ -4,7 +4,7 @@ dhclient_SOURCES = clparse.c dhclient.c
54343e
 		   scripts/bsdos scripts/freebsd scripts/linux scripts/macos \
54343e
 		   scripts/netbsd scripts/nextstep scripts/openbsd \
54343e
 		   scripts/solaris scripts/openwrt
54343e
-dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
54343e
+dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
54343e
 		 $(BIND9_LIBDIR) -ldns-export -lisc-export $(CAPNG_LDADD)
54343e
 man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
54343e
 EXTRA_DIST = $(man_MANS)
54343e
diff -up dhcp-4.2.5b1/common/tests/Makefile.am.sharedlib dhcp-4.2.5b1/common/tests/Makefile.am
54343e
--- dhcp-4.2.5b1/common/tests/Makefile.am.sharedlib	2012-12-17 16:26:53.271624835 +0100
54343e
+++ dhcp-4.2.5b1/common/tests/Makefile.am	2012-12-17 16:26:53.384623342 +0100
54343e
@@ -13,7 +13,7 @@ ATF_TESTS += alloc_unittest
54343e
 alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c
54343e
 alloc_unittest_LDADD = $(ATF_LDFLAGS)
54343e
 alloc_unittest_LDADD += ../libdhcp.a  \
54343e
-	../../omapip/libomapi.a \
54343e
+	../../omapip/libomapi.la \
54343e
 	 $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
 
54343e
 check: $(ATF_TESTS)
54343e
diff -up dhcp-4.2.5b1/configure.ac.sharedlib dhcp-4.2.5b1/configure.ac
54343e
--- dhcp-4.2.5b1/configure.ac.sharedlib	2012-12-17 16:26:53.350623790 +0100
54343e
+++ dhcp-4.2.5b1/configure.ac	2012-12-17 16:26:53.384623342 +0100
54343e
@@ -37,7 +37,8 @@ fi
54343e
 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
54343e
 AC_USE_SYSTEM_EXTENSIONS
54343e
 
54343e
-AC_PROG_RANLIB
54343e
+# Use libtool to simplify building of shared libraries
54343e
+AC_PROG_LIBTOOL
54343e
 AC_CONFIG_HEADERS([includes/config.h])
54343e
 
54343e
 # we sometimes need to know byte order for building packets
54343e
diff -up dhcp-4.2.5b1/dhcpctl/Makefile.am.sharedlib dhcp-4.2.5b1/dhcpctl/Makefile.am
54343e
--- dhcp-4.2.5b1/dhcpctl/Makefile.am.sharedlib	2012-12-17 16:26:53.271624835 +0100
54343e
+++ dhcp-4.2.5b1/dhcpctl/Makefile.am	2012-12-17 16:26:53.385623329 +0100
54343e
@@ -1,15 +1,15 @@
54343e
 bin_PROGRAMS = omshell
54343e
-lib_LIBRARIES = libdhcpctl.a
54343e
+lib_LTLIBRARIES = libdhcpctl.la
54343e
 noinst_PROGRAMS = cltest
54343e
 man_MANS = omshell.1 dhcpctl.3
54343e
 EXTRA_DIST = $(man_MANS)
54343e
 
54343e
 omshell_SOURCES = omshell.c
54343e
-omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
54343e
+omshell_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \
54343e
 	        $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
 
54343e
-libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
54343e
+libdhcpctl_la_SOURCES = dhcpctl.c callback.c remote.c
54343e
 
54343e
 cltest_SOURCES = cltest.c
54343e
-cltest_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
54343e
+cltest_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \
54343e
 	       $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
diff -up dhcp-4.2.5b1/omapip/Makefile.am.sharedlib dhcp-4.2.5b1/omapip/Makefile.am
54343e
--- dhcp-4.2.5b1/omapip/Makefile.am.sharedlib	2012-12-17 16:26:53.272624822 +0100
54343e
+++ dhcp-4.2.5b1/omapip/Makefile.am	2012-12-17 16:26:53.385623329 +0100
54343e
@@ -1,7 +1,7 @@
54343e
-lib_LIBRARIES = libomapi.a
54343e
+lib_LTLIBRARIES = libomapi.la
54343e
 noinst_PROGRAMS = svtest
54343e
 
54343e
-libomapi_a_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
54343e
+libomapi_la_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
54343e
 		     errwarn.c listener.c dispatch.c generic.c support.c \
54343e
 		     handle.c message.c convert.c hash.c auth.c inet_addr.c \
54343e
 		     array.c trace.c toisc.c iscprint.c isclib.c
54343e
@@ -10,5 +10,5 @@ man_MANS = omapi.3
54343e
 EXTRA_DIST = $(man_MANS)
54343e
 
54343e
 svtest_SOURCES = test.c
54343e
-svtest_LDADD = libomapi.a $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
+svtest_LDADD = libomapi.la $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
 
54343e
diff -up dhcp-4.2.5b1/relay/Makefile.am.sharedlib dhcp-4.2.5b1/relay/Makefile.am
54343e
--- dhcp-4.2.5b1/relay/Makefile.am.sharedlib	2012-12-17 16:26:53.351623777 +0100
54343e
+++ dhcp-4.2.5b1/relay/Makefile.am	2012-12-17 16:26:53.385623329 +0100
54343e
@@ -2,7 +2,7 @@ AM_CPPFLAGS = -DLOCALSTATEDIR='"@localst
54343e
 
54343e
 sbin_PROGRAMS = dhcrelay
54343e
 dhcrelay_SOURCES = dhcrelay.c
54343e
-dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
54343e
+dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
54343e
 		 $(BIND9_LIBDIR) -ldns-export -lisc-export $(CAPNG_LDADD)
54343e
 man_MANS = dhcrelay.8
54343e
 EXTRA_DIST = $(man_MANS)
54343e
diff -up dhcp-4.2.5b1/server/Makefile.am.sharedlib dhcp-4.2.5b1/server/Makefile.am
54343e
--- dhcp-4.2.5b1/server/Makefile.am.sharedlib	2012-12-17 16:26:53.272624822 +0100
54343e
+++ dhcp-4.2.5b1/server/Makefile.am	2012-12-17 16:26:53.385623329 +0100
54343e
@@ -13,8 +13,8 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c c
54343e
 		dhcpv6.c mdb6.c ldap.c ldap_casa.c
54343e
 
54343e
 dhcpd_CFLAGS = $(LDAP_CFLAGS)
54343e
-dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
54343e
-	      ../dhcpctl/libdhcpctl.a $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
+dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
54343e
+	      ../dhcpctl/libdhcpctl.la $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
 
54343e
 man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
54343e
 EXTRA_DIST = $(man_MANS)
54343e
diff -up dhcp-4.2.5b1/server/tests/Makefile.am.sharedlib dhcp-4.2.5b1/server/tests/Makefile.am
54343e
--- dhcp-4.2.5b1/server/tests/Makefile.am.sharedlib	2012-12-17 16:26:53.000000000 +0100
54343e
+++ dhcp-4.2.5b1/server/tests/Makefile.am	2012-12-17 16:28:25.898349545 +0100
54343e
@@ -17,8 +17,8 @@ DHCPSRC = ../dhcp.c ../bootp.c ../confpa
54343e
           ../ddns.c ../dhcpleasequery.c ../dhcpv6.c ../mdb6.c        \
54343e
           ../ldap.c ../ldap_casa.c ../dhcpd.c
54343e
 
54343e
-DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a    \
54343e
-          $(top_builddir)/dhcpctl/libdhcpctl.a $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
+DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.la    \
54343e
+          $(top_builddir)/dhcpctl/libdhcpctl.la $(BIND9_LIBDIR) -ldns-export -lisc-export
54343e
 
54343e
 ATF_TESTS =
54343e
 TESTS =