Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 85b0589b4843c03e8e6fd9416d71ea449a73c5c0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Koen Kooi <koen@dominion.thruhere.net> |
| 3 | Date: Thu, 3 Nov 2011 10:46:16 +0100 |
| 4 | Subject: [PATCH] make configure cross compile safe |
| 5 | |
| 6 | According to Kevin Tian: |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> |
| 10 | Signed-off-by: Shane Wang <shane.wang@intel.com> |
| 11 | |
| 12 | Index: iproute2-3.7.0/configure |
| 13 | =================================================================== |
| 14 | --- iproute2-3.7.0.orig/configure |
| 15 | +++ iproute2-3.7.0/configure |
| 16 | @@ -2,6 +2,7 @@ |
| 17 | # This is not an autconf generated configure |
| 18 | # |
| 19 | INCLUDE=${1:-"$PWD/include"} |
| 20 | +SYSROOT=$1 |
| 21 | |
| 22 | # Make a temp directory in build tree. |
| 23 | TMPDIR=$(mktemp -d config.XXXXXX) |
| 24 | @@ -158,7 +159,7 @@ check_ipt_lib_dir() |
| 25 | return |
| 26 | fi |
| 27 | |
| 28 | - for dir in /lib /usr/lib /usr/local/lib |
| 29 | + for dir in $SYSROOT/lib $SYSROOT/usr/lib $SYSROOT/usr/local/lib |
| 30 | do |
| 31 | for file in $dir/{xtables,iptables}/lib*t_*so ; do |
| 32 | if [ -f $file ]; then |