libiio: fix linker error when XML backend is not selected
authorMichael Heimpold <redacted>
Mon, 14 Sep 2020 19:49:14 +0000 (21:49 +0200)
committerMichael Heimpold <redacted>
Mon, 14 Sep 2020 19:49:43 +0000 (21:49 +0200)
It seems to be an upstream bug which prevents linking when XML backend
is not selected:
../libiio.so.0.21: undefined reference to `encode_xml_ndup'

Until this is clarified with upstream, prevent OpenWrt users from
deselecting the XML backend. This increases the footprint of this
package, but renders it usable again.

Signed-off-by: Michael Heimpold <redacted>
libs/libiio/Makefile

index 1e0ff15f4636b21c6997e8f5fb41a7a3a0d030be..b694b18b7020a0e2cb5fba2b89c2749355b4072f 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libiio
 PKG_VERSION:=0.21
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/analogdevicesinc/libiio/tar.gz/v$(PKG_VERSION)?
@@ -78,9 +78,9 @@ config LIBIIO_USB_BACKEND
        default n
 
 config LIBIIO_XML_BACKEND
-       bool "Enable XML backend"
+       bool
        depends on PACKAGE_libiio
-       default n
+       default y
 endef
 
 define Package/libiio/description
@@ -101,7 +101,7 @@ define Package/iiod
   CATEGORY:=Network
   TITLE:=Linux IIO daemon
   URL:=https://github.com/analogdevicesinc/libiio
-  DEPENDS:=+libiio @LIBIIO_XML_BACKEND
+  DEPENDS:=+libiio
 endef
 
 define Package/iiod/description
git clone https://git.99rst.org/PROJECT