iproute2: fix build with toolchains providing setns(2)
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Nov 2012 08:21:25 +0000 (09:21 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Nov 2012 08:21:25 +0000 (09:21 +0100)
commit102f79865e21158c9153148bef189f810aad5814
tree008a42f28df3ae18d590ad6e8e30fa3036ae342f
parentb7053563f5c4d55edac75eaf833f473b7818b6e8
iproute2: fix build with toolchains providing setns(2)

Fixes http://autobuild.buildroot.net/results/b2f28621bc9d6048057c406048b3f7d665cef165

ipnetns.c contains a replacement setns implementation, which is used
if the toolchain doesn't provide any (HAVE_SETNS not set).

We don't have any knowledge of toolchain setns support on buildroot
level, but the (handwritten) configure script contains a test for it,
so run the configure script before building.

The configure script isn't written for cross compilation, so it needs
to be massaged slightly to use the cross compiler / flags.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/iproute2/iproute2.mk