cbtt: add -nodefaultlibs to LFLAGS
authorOliver Ertl <oliver@ertl-net.net>
Mon, 27 Aug 2007 21:52:05 +0000 (21:52 +0000)
committerOliver Ertl <oliver@ertl-net.net>
Mon, 27 Aug 2007 21:52:05 +0000 (21:52 +0000)
SVN-Revision: 8511

net/cbtt/Makefile

index a8f87b7f6b09ccb19048c02a83ee60a2a4c7e701..34025a7228327f369b089bbb6eb06f2590148360 100644 (file)
@@ -40,15 +40,9 @@ define Package/cbtt-mysql
   URL:=http://bnbtusermods.sourceforge.net
 endef
 
-define Build/Compile
-       rm -rf $(PKG_INSTALL_DIR)
-       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 -lpthread -luClibc++ -lc -lm -lgcc" \
-               CFLAGS="-I$(STAGING_DIR)/usr/include -fno-builtin -fno-rtti -nostdinc++"
-       mkdir -p $(PKG_INSTALL_DIR)/usr/bin
-endef
+MAKE_FLAGS += \
+       LFLAGS="-L$(STAGING_DIR)/usr/lib -L $(STAGING_DIR)/usr/lib/mysql -L. -lz -lmysqlclient -nodefaultlibs -lpthread -luClibc++ -lc -lm -lgcc" \
+       CFLAGS="-I$(STAGING_DIR)/usr/include -fno-builtin -fno-rtti -nostdinc++"
 
 define Package/cbtt/install
        $(INSTALL_DIR) $(1)/usr/bin