From: Sebastian Kemper Date: Fri, 1 Sep 2017 22:30:28 +0000 (+0200) Subject: chan-sccp-b: fix uclibc build X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=da51da8c91477587d4700d239f06dc9ac4a966bf;p=feed%2Ftelephony.git 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 --- 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