summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2016-11-20 23:28:58 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-11-21 21:21:38 +0100
commitfe0607e68beeec7d33693194b76f7fff8e9be2ef (patch)
tree9c26c79292ca04ea075f6325525d7e56ed83d414
parent8528db817d7466fc9b5d5c2c619b57f184cdaca7 (diff)
downloadbuildroot-fe0607e68beeec7d33693194b76f7fff8e9be2ef.tar.gz
buildroot-fe0607e68beeec7d33693194b76f7fff8e9be2ef.zip
xapp_xload: fix musl build
xapp_xload tries to include protocols/rwhod.h, which isn't available on musl. Fortunately, the package also has stub code that can be enabled with -DRLOADSTUB (this is done e.g. on Cygwin). This should probably be detected in configure, but that's a lot more work. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/x11r7/xapp_xload/xapp_xload.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/x11r7/xapp_xload/xapp_xload.mk b/package/x11r7/xapp_xload/xapp_xload.mk
index 1db0db5717..364d247a95 100644
--- a/package/x11r7/xapp_xload/xapp_xload.mk
+++ b/package/x11r7/xapp_xload/xapp_xload.mk
@@ -11,4 +11,9 @@ XAPP_XLOAD_LICENSE = MIT
XAPP_XLOAD_LICENSE_FILES = COPYING
XAPP_XLOAD_DEPENDENCIES = xlib_libXaw
+ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
+# musl doesn't have rwhod.h, but xload can replace it with stubs
+XAPP_XLOAD_CONF_OPTS += CFLAGS="$(TARGET_CFLAGS) -DRLOADSTUB"
+endif
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud