opal: do not build against uclibc++
authorFlorian Fainelli <florian@openwrt.org>
Tue, 11 Dec 2012 16:58:10 +0000 (16:58 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 11 Dec 2012 16:58:10 +0000 (16:58 +0000)
Neither g++-uc nor g++-uc+std prove to properly build opal, so just
fallback to the standard g++ and libstdc++ build.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34634

libs/opal/Makefile

index 19ca8c99e68cb7ed1289b831fa17685343da39d7..80e6e0f764ac186ce08c97ec696b49a31e77034d 100644 (file)
@@ -1,12 +1,11 @@
-# 
-# Copyright (C) 2006 OpenWrt.org
+#
+# Copyright (C) 2006-2012 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
 
 include $(TOPDIR)/rules.mk
-include $(INCLUDE_DIR)/uclibc++.mk
 
 PKG_NAME:=opal
 PKG_VERSION:=3.2.1
@@ -18,16 +17,12 @@ PKG_MD5SUM:=405ba3b03ec706b6e6f873de340937e2
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
 
-# Set location of ptlib (Which needs to have been built already)
-export PTLIBDIR=$(BUILD_DIR)/ptlib
-export PTLIBPLUGINDIR=$(BUILD_DIR)/ptlib/plugins/ptlib/
-
 include $(INCLUDE_DIR)/package.mk
 
 define Package/libopal
   SECTION:=libs
   CATEGORY:=Libraries
-  DEPENDS:=+ptlib $(CXX_DEPENDS)
+  DEPENDS:=+ptlib +libstdcpp
   TITLE:=Open Phone Abstraction Library
   URL:=http://www.opalvoip.org/
 endef
@@ -56,11 +51,15 @@ CONFIGURE_ARGS += \
        --enable-localgsm
 
 CONFIGURE_VARS += \
-       CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
+       PTLIBDIR="$(BUILD_DIR)/ptlib" \
+       PTLIBPLUGINDIR="$(BUILD_DIR)/ptlib/plugins/ptlib/"
+       CXXFLAGS="$(TARGET_CFLAGS)" \
 
 MAKE_FLAGS += \
        CFLAGS="$(TARGET_CFLAGS)" \
        CCFLAGS="$(TARGET_CFLAGS)" \
+       PTLIBDIR="$(BUILD_DIR)/ptlib" \
+       PTLIBPLUGINDIR="$(BUILD_DIR)/ptlib/plugins/ptlib/" \
        optnoshared
 
 define Build/InstallDev