Eglibc doesn't bundle librpc, therefore -lrpc must be passed through LDFLAGS.
Alas, lsof doesn't take LDFLAGS out-of-the-box. Patch the Makefile to do so.
Also, patch a previous patch which was broken... either use "test 0 -eq 1" (not
missing 'test' command name) or simpler still, just use /bin/false.
Signed-off-by: Philip Prindeville <[email protected]>
Index: trunk/feeds/packages/utils/lsof/patches/003-lsof_selinux.patch
===================================================================
--- trunk/feeds/packages/utils/lsof/patches/003-lsof_selinux.patch
(revision 32484)
+++ trunk/feeds/packages/utils/lsof/patches/003-lsof_selinux.patch
(working copy)
@@ -5,7 +5,7 @@
fi # }
fi # }
- if test $LSOF_TMP1 -eq 1 # {
-+ if 0 -eq 1 # {
++ if /bin/false # {
then
LSOF_CFGF="$LSOF_CFGF -DHASSELINUX"
LSOF_CFGL="$LSOF_CFGL -lselinux"
Index: trunk/feeds/packages/utils/lsof/patches/010-lsof_ldflags.patch
===================================================================
--- trunk/feeds/packages/utils/lsof/patches/010-lsof_ldflags.patch
(revision 0)
+++ trunk/feeds/packages/utils/lsof/patches/010-lsof_ldflags.patch
(revision 0)
@@ -0,0 +1,11 @@
+--- lsof-4.86+dfsg.orig/dialects/linux/Makefile.orig 2008-04-15
07:30:04.000000000 -0600
++++ lsof-4.86+dfsg.orig/dialects/linux/Makefile 2012-06-23
14:48:51.207849824 -0600
+@@ -43,7 +43,7 @@ SOURCE= Makefile ${OTHER} ${MAN} ${HDR}
+ all: ${PROG}
+
+ ${PROG}: ${P} ${LIB} ${OBJ}
+- ${CC} -o $@ ${OBJ} ${CFGL}
++ ${CC} -o $@ ${OBJ} ${LDFLAGS} ${CFGL}
+
+ clean: FRC
+ rm -f Makefile.bak ${PROG} a.out core errs lint.out tags *.o version.h
${CFGDN}
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel