lsof: don't use host toolchain to determine target libc
authorBaruch Siach <baruch@tkos.co.il>
Wed, 14 May 2014 12:45:08 +0000 (15:45 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 15 May 2014 21:39:15 +0000 (23:39 +0200)
commita13ea3b30b02580c0f582f2c2435818aa1921a3d
tree4b153a220409cd283f4eb67a5794cf41e5a6e502
parentf3f3de09660466c0adb6b132bb90f38894ece46e
lsof: don't use host toolchain to determine target libc

The lsof Configure script builds a test program using the host toolchain to
test whether glibc is used. This test is broken in cross compilation
environment. Set LINUX_CLIB to avoid the test. This should give the correct
result even for non glibc toolchains, since all libc variants we support have
the netinet/tcp.h header.

Fixes:
http://autobuild.buildroot.net/results/a1f/a1f0572dbf968c21f70b35cefff7ef7a1d9a348a/

Cc: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/lsof/lsof.mk