This patch file was developed in-house to allow isc-dhcp to build and package
shared objects for libomapi and libdhcpctl. Upstream (ISC) has been made aware of
this requirement and the the patch through a service ticket and they are actively
working on developing a patch.
--- old/bind/Makefile.in Fri Mar 11 11:59:19 2016
+++ new/bind/Makefile.in Fri Mar 11 11:59:19 2016
@@ -24,6 +24,17 @@
# GMAKE=
include ./bindvar.tmp
+
+CC = @CC@
+CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
+
+ENV = /usr/bin/env
+CONFIG_SHELL = /bin/bash
+CONFIGURE_ENV = CONFIG_SHELL="$(CONFIG_SHELL)"
+CONFIGURE_ENV += CC="$(CC)"
+
+
bindsrcdir=bind-${version}
bindconfig = --disable-kqueue --disable-epoll --disable-devpoll \
@@ -30,7 +41,8 @@
--without-openssl --without-libxml2 --enable-exportlib \
--with-gssapi=no --enable-threads=no @BINDCONFIG@ \
--with-export-includedir=${binddir}/include \
- --with-export-libdir=${binddir}/lib
+ --with-export-libdir=${binddir}/lib --with-libtool \
+ CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)"
@BIND_ATF_FALSE@cleandirs = ./lib ./include
@BIND_ATF_TRUE@cleandirs = ./lib ./include ./atf
@@ -64,6 +76,7 @@
echo Configuring BIND Export libraries for DHCP. ; \
rm -rf ${cleandirs} ${cleanfiles} ; \
(cd ${bindsrcdir} && \
+ $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) \
./configure ${bindconfig} > ${binddir}/configure.log); \
fi
--- old/client/Makefile.am Fri Mar 11 11:59:19 2016
+++ new/client/Makefile.am Fri Mar 11 11:59:19 2016
@@ -10,7 +10,7 @@
man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
EXTRA_DIST = $(man_MANS)
--- old/client/tests/Makefile.am Fri Mar 11 11:59:20 2016
+++ new/client/tests/Makefile.am Fri Mar 11 11:59:19 2016
@@ -15,8 +15,8 @@
-DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a \
- $(top_builddir)/dhcpctl/libdhcpctl.a $(top_builddir)/bind/lib/libirs.a \
+DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.la \
+ $(top_builddir)/dhcpctl/libdhcpctl.la $(top_builddir)/bind/lib/libirs.a \
$(top_builddir)/bind/lib/libdns.a $(top_builddir)/bind/lib/libisccfg.a \
$(top_builddir)/bind/lib/libisc.a
--- old/common/tests/Makefile.am Fri Mar 11 11:59:19 2016
+++ new/common/tests/Makefile.am Fri Mar 11 11:59:19 2016
@@ -13,25 +13,25 @@
alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c
alloc_unittest_LDADD = $(ATF_LDFLAGS)
alloc_unittest_LDADD += ../libdhcp.a \
- ../../omapip/libomapi.a ../../bind/lib/libirs.a \
+ ../../omapip/libomapi.la ../../bind/lib/libirs.a \
dns_unittest_SOURCES = dns_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
dns_unittest_LDADD = $(ATF_LDFLAGS)
dns_unittest_LDADD += ../libdhcp.a \
- ../../omapip/libomapi.a ../../bind/lib/libirs.a \
+ ../../omapip/libomapi.la ../../bind/lib/libirs.a \
misc_unittest_SOURCES = misc_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
misc_unittest_LDADD = $(ATF_LDFLAGS)
misc_unittest_LDADD += ../libdhcp.a \
- ../../omapip/libomapi.a ../../bind/lib/libirs.a \
+ ../../omapip/libomapi.la ../../bind/lib/libirs.a \
ns_name_unittest_SOURCES = ns_name_test.c $(top_srcdir)/tests/t_api_dhcp.c
ns_name_unittest_LDADD = $(ATF_LDFLAGS)
ns_name_unittest_LDADD += ../libdhcp.a \
- ../../omapip/libomapi.a ../../bind/lib/libirs.a \
+ ../../omapip/libomapi.la ../../bind/lib/libirs.a \
check: $(ATF_TESTS)
--- old/./configure.ac Fri Mar 11 11:59:19 2016
+++ new/./configure.ac Fri Mar 11 11:59:19 2016
@@ -43,7 +43,7 @@
# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
AC_USE_SYSTEM_EXTENSIONS
-AC_PROG_RANLIB
+AC_PROG_LIBTOOL
AC_CONFIG_HEADERS([includes/config.h])
# we sometimes need to know byte order for building packets
--- old/dhcpctl/Makefile.am Fri Mar 11 11:59:19 2016
+++ new/dhcpctl/Makefile.am Fri Mar 11 11:59:19 2016
@@ -1,17 +1,18 @@
bin_PROGRAMS = omshell
-lib_LIBRARIES = libdhcpctl.a
+lib_LTLIBRARIES = libdhcpctl.la
+libdhcpctl_la_LDFLAGS = -version-info 1
noinst_PROGRAMS = cltest
man_MANS = omshell.1 dhcpctl.3
EXTRA_DIST = $(man_MANS)
omshell_SOURCES = omshell.c
cltest_SOURCES = cltest.c
--- old/includes/omapip/omapip.h Fri Mar 11 11:59:20 2016
+++ new/includes/omapip/omapip.h Fri Mar 11 11:59:19 2016
@@ -29,6 +29,7 @@
#ifndef _OMAPIP_H_
#define _OMAPIP_H_
+#include "config.h"
#include "result.h"
#include <stdarg.h>
--- old/omapip/Makefile.am Fri Mar 11 11:59:19 2016
+++ new/omapip/Makefile.am Fri Mar 11 11:59:19 2016
@@ -1,7 +1,8 @@
-lib_LIBRARIES = libomapi.a
+lib_LTLIBRARIES = libomapi.la
+libomapi_la_LDFLAGS = -version-info 1
noinst_PROGRAMS = svtest
@@ -10,6 +11,6 @@
EXTRA_DIST = $(man_MANS)
svtest_SOURCES = test.c
--- old/relay/Makefile.am Fri Mar 11 11:59:20 2016
+++ new/relay/Makefile.am Fri Mar 11 11:59:19 2016
@@ -2,7 +2,7 @@
sbin_PROGRAMS = dhcrelay
dhcrelay_SOURCES = dhcrelay.c
-dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
+dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
man_MANS = dhcrelay.8
--- old/server/Makefile.am Fri Mar 11 11:59:20 2016
+++ new/server/Makefile.am Fri Mar 11 11:59:19 2016
@@ -13,10 +13,10 @@
dhcpd_CFLAGS = $(LDAP_CFLAGS)
-dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
+dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
- $(LDAP_LIBS)
+ $(LDAP_LIBS)
man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
EXTRA_DIST = $(man_MANS)
--- old/server/tests/Makefile.am Fri Mar 11 11:59:19 2016
+++ new/server/tests/Makefile.am Fri Mar 11 11:59:19 2016
@@ -17,8 +17,8 @@
-DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a \
- $(top_builddir)/dhcpctl/libdhcpctl.a $(top_builddir)/bind/lib/libirs.a \
+DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.la \
+ $(top_builddir)/dhcpctl/libdhcpctl.la $(top_builddir)/bind/lib/libirs.a \
$(top_builddir)/bind/lib/libdns.a $(top_builddir)/bind/lib/libisccfg.a \
$(top_builddir)/bind/lib/libisc.a