blob: 5868b42615c7f51c83d8e92d7546d4c0c758065e (
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 c6ad7f4baf30275ddfaeba2b26d5727e48faf248 Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Sat, 9 Jan 2010 23:35:22 +0100
Subject: [PATCH 1/2] libusb-config: add SYSROOT support
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
libusb-config.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libusb-config.in b/libusb-config.in
index 6fbda43..d47d63f 100644
--- a/libusb-config.in
+++ b/libusb-config.in
@@ -52,8 +52,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
;;
@@ -77,5 +77,5 @@ if test "$echo_cflags" = "yes"; then
echo $includes
fi
if test "$echo_libs" = "yes"; then
- echo -L$libdir -lusb
+ echo -L${SYSROOT}$libdir -lusb
fi
--
1.6.6
|