]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - dhcp/patches/dhcp-4.2.2-sharedlib.patch
b504de7c1385b31e5d2dc152c8fab6110cff20bb
[people/ms/ipfire-3.x.git] / dhcp / patches / dhcp-4.2.2-sharedlib.patch
1 diff -up dhcp-4.2.2/client/Makefile.am.sharedlib dhcp-4.2.2/client/Makefile.am
2 --- dhcp-4.2.2/client/Makefile.am.sharedlib 2011-10-09 20:07:40.000000000 +0200
3 +++ dhcp-4.2.2/client/Makefile.am 2011-10-09 20:07:40.000000000 +0200
4 @@ -4,7 +4,7 @@ dhclient_SOURCES = clparse.c dhclient.c
5 scripts/bsdos scripts/freebsd scripts/linux scripts/macos \
6 scripts/netbsd scripts/nextstep scripts/openbsd \
7 scripts/solaris scripts/openwrt
8 -dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
9 +dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
10 $(BIND9_LIBDIR) -ldns-export -lisc-export $(CAPNG_LDADD)
11 man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
12 EXTRA_DIST = $(man_MANS)
13 diff -up dhcp-4.2.2/configure.ac.sharedlib dhcp-4.2.2/configure.ac
14 --- dhcp-4.2.2/configure.ac.sharedlib 2011-10-09 20:07:40.000000000 +0200
15 +++ dhcp-4.2.2/configure.ac 2011-10-09 20:07:40.000000000 +0200
16 @@ -30,7 +30,8 @@ fi
17 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
18 AC_USE_SYSTEM_EXTENSIONS
19
20 -AC_PROG_RANLIB
21 +# Use libtool to simplify building of shared libraries
22 +AC_PROG_LIBTOOL
23 AC_CONFIG_HEADERS([includes/config.h])
24
25 # we sometimes need to know byte order for building packets
26 diff -up dhcp-4.2.2/dhcpctl/Makefile.am.sharedlib dhcp-4.2.2/dhcpctl/Makefile.am
27 --- dhcp-4.2.2/dhcpctl/Makefile.am.sharedlib 2011-10-09 20:07:39.000000000 +0200
28 +++ dhcp-4.2.2/dhcpctl/Makefile.am 2011-10-09 20:07:40.000000000 +0200
29 @@ -1,15 +1,15 @@
30 bin_PROGRAMS = omshell
31 -lib_LIBRARIES = libdhcpctl.a
32 +lib_LTLIBRARIES = libdhcpctl.la
33 noinst_PROGRAMS = cltest
34 man_MANS = omshell.1 dhcpctl.3
35 EXTRA_DIST = $(man_MANS)
36
37 omshell_SOURCES = omshell.c
38 -omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
39 +omshell_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \
40 $(BIND9_LIBDIR) -ldns-export -lisc-export
41
42 -libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
43 +libdhcpctl_la_SOURCES = dhcpctl.c callback.c remote.c
44
45 cltest_SOURCES = cltest.c
46 -cltest_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
47 +cltest_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \
48 $(BIND9_LIBDIR) -ldns-export -lisc-export
49 diff -up dhcp-4.2.2/omapip/Makefile.am.sharedlib dhcp-4.2.2/omapip/Makefile.am
50 --- dhcp-4.2.2/omapip/Makefile.am.sharedlib 2011-10-09 20:07:39.000000000 +0200
51 +++ dhcp-4.2.2/omapip/Makefile.am 2011-10-09 20:07:40.000000000 +0200
52 @@ -1,7 +1,7 @@
53 -lib_LIBRARIES = libomapi.a
54 +lib_LTLIBRARIES = libomapi.la
55 noinst_PROGRAMS = svtest
56
57 -libomapi_a_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
58 +libomapi_la_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
59 errwarn.c listener.c dispatch.c generic.c support.c \
60 handle.c message.c convert.c hash.c auth.c inet_addr.c \
61 array.c trace.c toisc.c iscprint.c isclib.c
62 @@ -10,5 +10,5 @@ man_MANS = omapi.3
63 EXTRA_DIST = $(man_MANS)
64
65 svtest_SOURCES = test.c
66 -svtest_LDADD = libomapi.a $(BIND9_LIBDIR) -ldns-export -lisc-export
67 +svtest_LDADD = libomapi.la $(BIND9_LIBDIR) -ldns-export -lisc-export
68
69 diff -up dhcp-4.2.2/relay/Makefile.am.sharedlib dhcp-4.2.2/relay/Makefile.am
70 --- dhcp-4.2.2/relay/Makefile.am.sharedlib 2011-10-09 20:07:40.000000000 +0200
71 +++ dhcp-4.2.2/relay/Makefile.am 2011-10-09 20:07:40.000000000 +0200
72 @@ -2,7 +2,7 @@ AM_CPPFLAGS = -DLOCALSTATEDIR='"@localst
73
74 sbin_PROGRAMS = dhcrelay
75 dhcrelay_SOURCES = dhcrelay.c
76 -dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
77 +dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
78 $(BIND9_LIBDIR) -ldns-export -lisc-export $(CAPNG_LDADD)
79 man_MANS = dhcrelay.8
80 EXTRA_DIST = $(man_MANS)
81 diff -up dhcp-4.2.2/server/Makefile.am.sharedlib dhcp-4.2.2/server/Makefile.am
82 --- dhcp-4.2.2/server/Makefile.am.sharedlib 2011-10-09 20:07:39.000000000 +0200
83 +++ dhcp-4.2.2/server/Makefile.am 2011-10-09 20:08:26.000000000 +0200
84 @@ -7,8 +7,8 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c c
85 dhcpv6.c mdb6.c ldap.c ldap_casa.c
86
87 dhcpd_CFLAGS = $(LDAP_CFLAGS)
88 -dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
89 - ../dhcpctl/libdhcpctl.a $(BIND9_LIBDIR) -ldns-export -lisc-export
90 +dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
91 + ../dhcpctl/libdhcpctl.la $(BIND9_LIBDIR) -ldns-export -lisc-export
92
93 man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
94 EXTRA_DIST = $(man_MANS)