From: nico Date: Tue, 3 Feb 2009 02:46:31 +0000 (+0000) Subject: [packages] lsof: fix build on glibc/eglibc based toolchain, use build kernel version... X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=ca00b81362df6a8d09b626ff4181b98e8ebdfacb;p=packages.git [packages] lsof: fix build on glibc/eglibc based toolchain, use build kernel version instead of host one, pass optflags without overriding cflags, bump release number git-svn-id: svn://svn.openwrt.org/openwrt/packages@14378 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/utils/lsof/Makefile b/utils/lsof/Makefile index 1af9c10c0..0a7eb0418 100644 --- a/utils/lsof/Makefile +++ b/utils/lsof/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007 OpenWrt.org +# Copyright (C) 2007-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -7,10 +7,11 @@ # $Id$ include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=lsof PKG_VERSION:=4.77 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).dfsg.1.orig.tar.gz PKG_SOURCE_URL:=http://ftp2.de.debian.org/debian/pool/main/l/lsof @@ -29,14 +30,15 @@ endef define Build/Configure cd $(PKG_BUILD_DIR); \ - ./Configure -n linux + LINUX_CLIB="-DGLIBCV=2" LSOF_VSTR="$(LINUX_VERSION)" \ + ./Configure -n linux endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC="$(TARGET_CC)" \ - CFLAGS="$(TARGET_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" + CC="$(TARGET_CC)" \ + DEBUG="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" endef define Package/lsof/install