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 <phil...@redfish-solutions.com>
Index: feeds/packages/utils/lsof/Makefile
===================================================================
--- feeds/packages/utils/lsof/Makefile  (revision 32520)
+++ feeds/packages/utils/lsof/Makefile  (working copy)
@@ -20,7 +20,6 @@
 
 include $(INCLUDE_DIR)/package.mk
 
-TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
 TARGET_LDFLAGS += $(LIBRPC)
 
 define Package/lsof
@@ -35,17 +34,17 @@
        cd $(PKG_BUILD_DIR); \
                LINUX_CLIB="-DGLIBCV=2" \
                LSOF_CC="$(TARGET_CC)" \
+               LSOF_INCLUDE="-I$(STAGING_DIR)/usr/include" \
                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
 endef
 
 define Build/Compile   
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               CC="$(TARGET_CC)" \
-               AR="$(TARGET_CROSS)ar cr" \
-               RANLIB="$(TARGET_CROSS)ranlib" \
-               DEBUG="$(TARGET_CFLAGS)" \
-               LDFLAGS="$(TARGET_LDFLAGS)" 
+       $(MAKE) -C $(PKG_BUILD_DIR)
 endef
 
 define Package/lsof/install    
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to