summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcp/dhcp.inc
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2017-05-19 16:52:47 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-29 15:15:20 +0100
commit291a273502b5675455de30cd652850517d425f4f (patch)
tree3eeb2b34c3b0167aca2357c34fde34f25ae3f894 /meta/recipes-connectivity/dhcp/dhcp.inc
parente680f23c8b644051486c21d77442190ec80494de (diff)
downloadpoky-291a273502b5675455de30cd652850517d425f4f.tar.gz
dhcp: build shared libraries
When enable bind threads support, it fails to compile dhcp: | tmp/work/armv5e-poky-linux-gnueabi/bind/9.10.3-P3-r0/build/lib/isc/pthreads/../../../ | ../bind-9.10.3-P3/lib/isc/pthreads/thread.c:64: undefined reference to `pthread_create' Enable build shared libraries for bind and dhcp to fix the build failure. And the patch is ported from Fedora. Add sub-package dhcp-libs to package shared libraries. (From OE-Core rev: dde83ec778c09557d28b4388258e594be653875c) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/dhcp.inc')
-rw-r--r--meta/recipes-connectivity/dhcp/dhcp.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index aafdd0a13d..969fdcbd5b 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -46,7 +46,7 @@ EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \
46 --with-cli-lease-file=${localstatedir}/lib/dhcp/dhclient.leases \ 46 --with-cli-lease-file=${localstatedir}/lib/dhcp/dhclient.leases \
47 --with-cli6-lease-file=${localstatedir}/lib/dhcp/dhclient6.leases \ 47 --with-cli6-lease-file=${localstatedir}/lib/dhcp/dhclient6.leases \
48 --with-libbind=${STAGING_LIBDIR}/ \ 48 --with-libbind=${STAGING_LIBDIR}/ \
49 --enable-paranoia \ 49 --enable-paranoia --disable-static \
50 --with-randomdev=/dev/random \ 50 --with-randomdev=/dev/random \
51 " 51 "
52 52
@@ -82,12 +82,14 @@ do_install_append () {
82 sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcrelay.service 82 sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcrelay.service
83} 83}
84 84
85PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell" 85PACKAGES += "dhcp-libs dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell"
86 86
87FILES_${PN} = "" 87FILES_${PN} = ""
88RDEPENDS_${PN}-dev = "" 88RDEPENDS_${PN}-dev = ""
89RDEPENDS_${PN}-staticdev = "" 89RDEPENDS_${PN}-staticdev = ""
90 90
91FILES_${PN}-libs = "${libdir}/libdhcpctl.so.0* ${libdir}/libomapi.so.0*"
92
91FILES_${PN}-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server" 93FILES_${PN}-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server"
92RRECOMMENDS_${PN}-server = "dhcp-server-config" 94RRECOMMENDS_${PN}-server = "dhcp-server-config"
93 95