fix makefile
authorMike Baker <mbm@openwrt.org>
Fri, 18 Aug 2006 23:13:40 +0000 (23:13 +0000)
committerMike Baker <mbm@openwrt.org>
Fri, 18 Aug 2006 23:13:40 +0000 (23:13 +0000)
SVN-Revision: 4606

net/cbtt/Makefile
net/dsl-qos-queue/Makefile

index 01e1aa0..2869a71 100644 (file)
@@ -29,6 +29,7 @@ define Package/cbtt
   DEPENDS:=zlib
   MENU:=1
   TITLE:=Bittorrent tracker
+  DEPENDS:=+libpthread
   DESCRIPTION:=a C BitTorrent Tracker
   URL:=http://bnbtusermods.sourceforge.net
 endef
@@ -36,7 +37,7 @@ endef
 define Package/cbtt-mysql
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS:=cbtt +libmysqlclient
+  DEPENDS:=cbtt +libmysqlclient +libpthread
   TITLE:=Bittorrent tracker with mysql support
   DESCRIPTION:=Bittorrent tracker with mysql support
   URL:=http://bnbtusermods.sourceforge.net
@@ -47,7 +48,7 @@ define Build/Compile
        mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
-               LFLAGS="-L$(STAGING_DIR)/usr/lib -L $(STAGING_DIR)/usr/lib/mysql -L. -lz -lmysqlclient" \
+               LFLAGS="-L$(STAGING_DIR)/usr/lib -L $(STAGING_DIR)/usr/lib/mysql -L. -lz -lmysqlclient -lpthread" \
                CFLAGS="-I$(STAGING_DIR)/usr/include"
        mkdir -p $(PKG_INSTALL_DIR)/usr/bin
 endef
index 0d462aa..35885b2 100644 (file)
@@ -30,8 +30,7 @@ define Package/dsl-qos-queue
 endef
 
 define Build/Compile
-$(call Build/Compile/Default,CC=$(TARGET_CC) \
-               $(TARGET_CONFIGURE_OPTS) \
+$(call Build/Compile/Default, \
                CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
                LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
                install_prefix="$(PKG_INSTALL_DIR)" \