From 522ca0de7583b9b3a07978ac6910018be7922af1 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Tue, 13 Mar 2018 12:03:47 +0100 Subject: [PATCH] pjproject: use preferred standard C++ lib Currently libstdc++ is hardcoded. Change that and use whatever standard C++ lib has preference. Signed-off-by: Sebastian Kemper --- libs/pjproject/Makefile | 5 +++-- .../160-remove-hardcoded-lstdc++.patch | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 libs/pjproject/patches/160-remove-hardcoded-lstdc++.patch diff --git a/libs/pjproject/Makefile b/libs/pjproject/Makefile index bdf7efc..2f35d72 100644 --- a/libs/pjproject/Makefile +++ b/libs/pjproject/Makefile @@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk 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) @@ -27,6 +27,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_CONFIG_DEPENDS:=CONFIG_SOFT_FLOAT +include $(INCLUDE_DIR)/uclibc++.mk include $(INCLUDE_DIR)/package.mk define Package/pjproject/Default @@ -34,7 +35,7 @@ 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 diff --git a/libs/pjproject/patches/160-remove-hardcoded-lstdc++.patch b/libs/pjproject/patches/160-remove-hardcoded-lstdc++.patch new file mode 100644 index 0000000..bf3bfbf --- /dev/null +++ b/libs/pjproject/patches/160-remove-hardcoded-lstdc++.patch @@ -0,0 +1,22 @@ +--- 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) + + + ###############################################################################