From da51da8c91477587d4700d239f06dc9ac4a966bf Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 2 Sep 2017 00:30:28 +0200 Subject: [PATCH] chan-sccp-b: fix uclibc build 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 --- net/chan-sccp-b/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net/chan-sccp-b/Makefile b/net/chan-sccp-b/Makefile index 1961af8..fcb04e3 100644 --- a/net/chan-sccp-b/Makefile +++ b/net/chan-sccp-b/Makefile @@ -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 -- 2.30.2