blob: 8b75a2ada4e5f521e314eafea921bc8393ebeac6 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From 85b0589b4843c03e8e6fd9416d71ea449a73c5c0 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Thu, 3 Nov 2011 10:46:16 +0100
4Subject: [PATCH] make configure cross compile safe
5
6According to Kevin Tian:
7Upstream-Status: Pending
8
9Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
10Signed-off-by: Shane Wang <shane.wang@intel.com>
11
Brad Bishop316dfdd2018-06-25 12:45:53 -040012Index: iproute2-4.14.1/configure
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013===================================================================
Brad Bishop316dfdd2018-06-25 12:45:53 -040014--- iproute2-4.14.1.orig/configure
15+++ iproute2-4.14.1/configure
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016@@ -2,6 +2,7 @@
Brad Bishop316dfdd2018-06-25 12:45:53 -040017 # This is not an autoconf generated configure
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018 #
19 INCLUDE=${1:-"$PWD/include"}
20+SYSROOT=$1
21
Brad Bishop316dfdd2018-06-25 12:45:53 -040022 # Output file which is input to Makefile
23 CONFIG=config.mk
24@@ -195,7 +196,7 @@ check_ipt_lib_dir()
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025 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