unrar libc++ fix
authorJohn Crispin <john@openwrt.org>
Fri, 3 Aug 2012 21:35:49 +0000 (21:35 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 3 Aug 2012 21:35:49 +0000 (21:35 +0000)
SVN-Revision: 32972

utils/unrar/Makefile

index f9224a0e6f91876cb0e6238ee71bc4c55c954f07..373b1fe5ad582949067852f4ce01bb9b16b7f9bb 100644 (file)
@@ -18,6 +18,7 @@ PKG_MD5SUM:=41b0a9bca945b4ae2608421afd8f606e
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unrar
 PKG_INSTALL:=1
 
+include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
 
 define Package/unrar
@@ -26,7 +27,7 @@ define Package/unrar
   SUBMENU:=compression
   TITLE:=unrar application
   URL:=http://www.rarlab.com/
-  DEPENDS:=+uclibcxx
+  DEPENDS:=$(CXX_DEPENDS)
 endef
 
 define Package/unrar/description
@@ -39,9 +40,6 @@ define Build/Configure
        ln -s $(PKG_BUILD_DIR)/makefile.unix $(PKG_BUILD_DIR)/Makefile
 endef
 
-MAKE_FLAGS += \
-       CXX="$(STAGING_DIR)/host/bin/g++-uc"
-
 define Package/unrar/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/