diff --git a/network/iproute2/iproute2.conf b/network/iproute2/iproute2.conf index 76b18c8de..665529c4c 100644 --- a/network/iproute2/iproute2.conf +++ b/network/iproute2/iproute2.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../iproute2/iproute2.conf -# Copyright (C) 2007 - 2010 The OpenSDE Project +# Copyright (C) 2007 - 2013 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -17,6 +17,12 @@ prefix= set_confopt +if atstage cross; then + # set LDFLAGS so configure tests will work when cross-compiling + var_append LDFLAGS ' ' "-L$( pkgprefix -r libdir $SDECFG_LIBC )" + var_append configprefix ' ' 'LDFLAGS=$LDFLAGS' +fi + var_append makeopt " " "KERNEL_INCLUDE=$root/usr/include" var_append makeopt " " "LIBC_INCLUDE=$root/usr/include" var_append makeinstopt " " "SBINDIR=$sbindir"