[packages] cbtt libc++ fix

git-svn-id: svn://svn.openwrt.org/openwrt/packages@32975 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2012-08-04 17:01:59 +00:00
parent a08f2e35de
commit e35b1ea0ae

View File

@ -8,21 +8,22 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=cbtt
PKG_VERSION:=20060727
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)80-$(PKG_VERSION)-src.tar.gz
PKG_SOURCE_URL:=@SF/bnbtusermods
PKG_SOURCE_URL:=@SF/bnbtusermods
PKG_MD5SUM:=d6edf0a11d7e68fa3d121e91308f22f5
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)80-$(PKG_VERSION)-src
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/cbtt/Default
SUBMENU:=BitTorrent
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread +uclibcxx +zlib
DEPENDS:=+libpthread $(CXX_DEPENDS) +zlib
TITLE:=Bittorrent tracker
URL:=http://bnbtusermods.sourceforge.net/
endef
@ -43,8 +44,8 @@ define Build/Template
$(STAMP_BUILT)-$(2): $(STAMP_PREPARED)
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -nostdinc++" \
LFLAGS="$(TARGET_LDFLAGS) -L. -nodefaultlibs -lc $(4) -lz -luClibc++ -lm -lpthread $(LIBGCC_S)" \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
LFLAGS="$(TARGET_LDFLAGS) -L. $(4) -lz -lm -lpthread" \
$(3)
touch $$@