lsof: use environment variables correctly to prime Configure

Rewrite of the configure and compile stages as per the suggestions in the packages 00XCONFIG instructions.

Note that this is required to get eglibc working, as eglibc doesn't include the RPC functions as part of libc.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@32529 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2012-06-29 18:30:10 +00:00
parent ab5e6e0883
commit 4f152d80d1

View File

@ -20,7 +20,6 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)+dfsg.orig
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
TARGET_LDFLAGS += $(LIBRPC) TARGET_LDFLAGS += $(LIBRPC)
define Package/lsof define Package/lsof
@ -35,17 +34,17 @@ define Build/Configure
cd $(PKG_BUILD_DIR); \ cd $(PKG_BUILD_DIR); \
LINUX_CLIB="-DGLIBCV=2" \ LINUX_CLIB="-DGLIBCV=2" \
LSOF_CC="$(TARGET_CC)" \ LSOF_CC="$(TARGET_CC)" \
LSOF_INCLUDE="-I$(STAGING_DIR)/usr/include" \
LSOF_VSTR="$(LINUX_VERSION)" \ LSOF_VSTR="$(LINUX_VERSION)" \
LSOF_CFGC="$(TARGET_CFLAGS)" \
LSOF_CFGL="$(TARGET_LDFLAGS)" \
LSOF_AR="$(TARGET_CROSS)ar cr" \
LSOF_RANLIB="$(TARGET_CROSS)ranlib" \
./Configure -n linux ./Configure -n linux
endef endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR)
CC="$(TARGET_CC)" \
AR="$(TARGET_CROSS)ar cr" \
RANLIB="$(TARGET_CROSS)ranlib" \
DEBUG="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)"
endef endef
define Package/lsof/install define Package/lsof/install