summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-12-30 08:06:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-22 23:42:48 +0000
commitbcf7548aacb82d2e14115ced8fa58d35963abe60 (patch)
tree29d4d74bc51b1f693b8690009bef33c3ff88dab7 /meta/recipes-extended/xinetd/xinetd_2.3.15.bb
parent00d30f7c772299f612e5f4d975042280e0d18f83 (diff)
downloadopenembedded-core-bcf7548aacb82d2e14115ced8fa58d35963abe60.tar.gz
xinetd: Fix build with musl
musl relies on external rpc implemetation (libtirpc) and exposed a bug in configury when checking for rlim_t Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-extended/xinetd/xinetd_2.3.15.bb')
-rw-r--r--meta/recipes-extended/xinetd/xinetd_2.3.15.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
index 652fe91de9..6bfaabe829 100644
--- a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
+++ b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
@@ -7,6 +7,7 @@ LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=8ad8615198542444f84d28a6cf226dd8"
DEPENDS = ""
+DEPENDS_append_libc-musl = " libtirpc "
PR = "r2"
# Blacklist a bogus tag in upstream check
@@ -20,6 +21,7 @@ SRC_URI = "git://github.com/xinetd-org/xinetd.git;protocol=https \
file://Disable-services-from-inetd.conf-if-a-service-with-t.patch \
file://xinetd-should-be-able-to-listen-on-IPv6-even-in-ine.patch \
file://xinetd-CVE-2013-4342.patch \
+ file://0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch \
file://xinetd.service \
"
@@ -39,6 +41,9 @@ EXTRA_OECONF="--disable-nls"
PACKAGECONFIG ??= "tcp-wrappers"
PACKAGECONFIG[tcp-wrappers] = "--with-libwrap,,tcp-wrappers"
+CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc "
+LDFLAGS_append_libc-musl = " -ltirpc "
+
do_configure() {
# Looks like configure.in is broken, so we are skipping
# rebuilding configure and are just using the shipped one