packages/utils/lsof/patches/005-lsof_ccv.patch
florian 4f448f5e6a [package] lsof: cross-build properly
I found that the lsof build was using the build host's ar and ranlib
instead of the target's. That's tolerable when the build host is
Linux/ELF. It's not so great when building on Mac OS X.

I also found that lsof was reporting that it was built with the native
compiler instead of the cross-compiler.

Signed-off-by: Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25614 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-20 16:04:02 +00:00

13 lines
282 B
Diff

--- a/Configure
+++ b/Configure
@@ -2547,6 +2547,9 @@
if test "X$LSOF_CC" = "X" # {
then
LSOF_CC=cc
+ fi # }
+ if test "X$LSOF_CCV" = "X" # {
+ then
LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'`
fi # }
LSOF_DIALECT_DIR=""