From 438e2724abf3f08b8676f340687f8ca3ec2439af Mon Sep 17 00:00:00 2001 From: cshore Date: Tue, 15 Mar 2011 08:30:10 +0000 Subject: [PATCH] [net] Telephony: yate: Added needed libraries and flags to configure for Yate to execute not just compile. Closes: #9039 and Closes: #9043. Based on patch and tickets from Dimitry Kurochkin. Thanks! git-svn-id: svn://svn.openwrt.org/openwrt/packages@26173 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/yate/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/net/yate/Makefile b/net/yate/Makefile index bd4d52cae..43f634580 100644 --- a/net/yate/Makefile +++ b/net/yate/Makefile @@ -32,7 +32,7 @@ endef define Package/$(PKG_NAME) $(call Package/yate/Default) - DEPENDS:=+libpthread @BROKEN + DEPENDS:=+libpthread +uclibcxx @BROKEN TITLE:=Yet Another Telphony Engine MENU:=1 endef @@ -42,7 +42,7 @@ define Package/$(PKG_NAME)/Default/description SIP, H.323, IAX, PSTN, and more. endef -TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include +TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include CONFIGURE_ARGS+= \ --sysconfdir=/etc/$(PKG_NAME) \ @@ -62,7 +62,9 @@ CONFIGURE_ARGS+= \ --with-zlib="$(STAGING_DIR)/usr" CONFIGURE_VARS+= \ - LIBS="-lpthread -lresolv" + CFLAGS="$$$$CFLAGS -nostdinc++" \ + LDFLAGS="$$$$LDFLAGS -nodefaultlibs" \ + LIBS="-luClibc++ -lpthread -lresolv -ldl -lm -lc $(LIBGCC_S)" define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/usr/lib