summaryrefslogtreecommitdiffstats
path: root/patches/libftdi-0.17/0001-libftdi-config-add-SYSROOT-support.patch
blob: 62636d7feb73f694d3540b7f8c23c086f2d6a85c (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
34
35
From 4ef06a91c6ff2e83010170caa3c52ee51a26c90a Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Sat, 9 Jan 2010 23:41:31 +0100
Subject: [PATCH] libftdi-config: add SYSROOT support

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 libftdi-config.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libftdi-config.in b/libftdi-config.in
index a71de4e..95b6664 100644
--- a/libftdi-config.in
+++ b/libftdi-config.in
@@ -50,8 +50,8 @@ while test $# -gt 0; do
       exit 0
       ;;
     --cflags)
-      if test "@includedir@" != /usr/include ; then
-        includes="-I@includedir@"
+      if test "${SYSROOT}@includedir@" != /usr/include ; then
+        includes="-I${SYSROOT}@includedir@"
       fi
       echo_cflags=yes
       ;;
@@ -75,5 +75,5 @@ if test "$echo_cflags" = "yes"; then
 	echo $includes
 fi
 if test "$echo_libs" = "yes"; then
-	echo -L@libdir@ -lftdi @LIBS@
+	echo -L${SYSROOT}@libdir@ -lftdi @LIBS@
 fi
-- 
1.6.6