From 98a7f47eaedaaf5448feee23a3ff0c95f7b89c6b Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 25 Apr 2009 21:03:43 +0000 Subject: [PATCH] [packages] vsftpd: compile with target optimizations git-svn-id: svn://svn.openwrt.org/openwrt/packages@15414 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/vsftpd/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/net/vsftpd/Makefile b/net/vsftpd/Makefile index cce731134..59aaf1003 100644 --- a/net/vsftpd/Makefile +++ b/net/vsftpd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2008 OpenWrt.org +# Copyright (C) 2006-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vsftpd PKG_VERSION:=2.1.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://vsftpd.beasts.org/users/cevans/ @@ -29,6 +29,13 @@ define Package/vsftpd/conffiles /etc/vsftpd.conf endef +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + vsftpd +endef + define Package/vsftpd/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/ -- 2.11.0