Currently libstdc++ is hardcoded. Change that and use whatever standard
C++ lib has preference.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
PKG_NAME:=pjproject
PKG_VERSION:=2.7.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)
PKG_CONFIG_DEPENDS:=CONFIG_SOFT_FLOAT
+include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/pjproject/Default
CATEGORY:=Libraries
SUBMENU:=Telephony
URL:=http://www.pjsip.org
- DEPENDS:=+libopenssl +libuuid +libstdcpp +libpthread
+ DEPENDS:=$(CXX_DEPENDS) +libopenssl +libuuid +libpthread
endef
define Package/pjproject/install/lib
--- /dev/null
+--- a/build.mak.in
++++ b/build.mak.in
+@@ -293,7 +293,6 @@ export APP_LDLIBS := $(PJSUA_LIB_LDLIB)
+ $(PJLIB_LDLIB) \
+ @LIBS@
+ export APP_LDXXLIBS := $(PJSUA2_LIB_LDLIB) \
+- -lstdc++ \
+ $(APP_LDLIBS)
+
+ # Here are the variabels to use if application is using the library
+--- a/pjsip/build/Makefile
++++ b/pjsip/build/Makefile
+@@ -152,8 +152,7 @@ export PJSUA2_LIB_LDFLAGS += $(PJSUA_LIB
+ $(PJNATH_LDLIB) \
+ $(PJLIB_UTIL_LDLIB) \
+ $(PJLIB_LDLIB) \
+- $(_LDFLAGS) \
+- -lstdc++
++ $(_LDFLAGS)
+
+
+ ###############################################################################