chan-sccp-b: fix uclibc build 184/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Fri, 1 Sep 2017 22:30:28 +0000 (00:30 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 1 Sep 2017 22:30:30 +0000 (00:30 +0200)
uclibc doesn't include iconv, so we need to use libiconv-full. This
fixes the ARC builds as they still default to uclibc.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/chan-sccp-b/Makefile

index 1961af8b9c5fbaceae6d5c851de6da97b757ef8e..fcb04e300ed66d460325783055cfc2242fd15952 100644 (file)
@@ -30,13 +30,21 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSI
 
 include $(INCLUDE_DIR)/package.mk
 
+# musl and glibc include their own iconv, but uclibc does not
+ifneq ($(CONFIG_USE_UCLIBC),)
+TARGET_CPPFLAGS+= \
+       -I$(STAGING_DIR)/usr/lib/libiconv-full/include
+TARGET_LDFLAGS+= \
+       -L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv
+endif
+
 define Package/chan-sccp-b/Default
   SUBMENU:=Telephony
   SECTION:=net
   CATEGORY:=Network
   TITLE:=SCCP channel provider support
   URL:=http://chan-sccp-b.sourceforge.net/
-  DEPENDS:=+libltdl
+  DEPENDS:=+USE_UCLIBC:libiconv-full +libltdl
   PKG_BUILD_DEPENDS:=libiconv
 endef