summaryrefslogtreecommitdiffstats
path: root/patches/libpcap-1.8.1/0101-pcap-config-add-SYSROOT-support.patch
blob: 51cf6c5541be1cd6ec0c1fbc0f5a6afee9cd75ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Sun, 10 Jan 2010 00:49:07 +0100
Subject: [PATCH] pcap-config: add SYSROOT support

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 pcap-config.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pcap-config.in b/pcap-config.in
index 206be3b4a644..50b05f53d32e 100644
--- a/pcap-config.in
+++ b/pcap-config.in
@@ -6,8 +6,8 @@
 #
 prefix="@prefix@"
 exec_prefix="@exec_prefix@"
-includedir="@includedir@"
-libdir="@libdir@"
+includedir="${SYSROOT}@includedir@"
+libdir="${SYSROOT}@libdir@"
 V_RPATH_OPT="@V_RPATH_OPT@"
 LIBS="@LIBS@"
 
@@ -41,7 +41,7 @@ then
 	#
 	# If libdir isn't /usr/lib, add it to the run-time linker path.
 	#
-	if [ "$libdir" != "/usr/lib" ]
+	if [ "$libdir" != "${SYSROOT}/usr/lib" ]
 	then
 		RPATH=$V_RPATH_OPT$libdir
 	fi