blob: 9de893367103e522a6f50ed7ac1b108229c5db44 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
From ce98dea7e75bd95b386cea865131d0303ba372d7 Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Sat, 9 Jan 2010 23:26:55 +0100
Subject: [PATCH] iodbc-config: add SYSROOT support
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
bin/iodbc-config.in | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/bin/iodbc-config.in b/bin/iodbc-config.in
index 7649752..702ed02 100644
--- a/bin/iodbc-config.in
+++ b/bin/iodbc-config.in
@@ -136,8 +136,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
;;
@@ -196,19 +196,19 @@ if test "$echo_libs" = "yes"; then
if test "$lib_iodbc" = "yes"; then
libs="$libs -liodbc -liodbcinst"
fi
- echo "-L@libdir@ $libs"
+ echo "-L${SYSROOT}@libdir@ $libs"
fi
if test "$echo_staticlibs" = "yes"; then
libs=""
if test "$lib_iodbc" = "yes"; then
- libs="@libdir@/libiodbc.a @libdir@/libiodbcinst.a @LIBADD_DL@"
+ libs="${SYSROOT}@libdir@/libiodbc.a ${SYSROOT}@libdir@/libiodbcinst.a @LIBADD_DL@"
fi
echo "$libs"
fi
if test "$echo_libtoollibs" = "yes"; then
libs=""
if test "$lib_iodbc" = "yes"; then
- libs="@libdir@/libiodbc.la @libdir@/libiodbcinst.la"
+ libs="${SYSROOT}@libdir@/libiodbc.la ${SYSROOT}@libdir@/libiodbcinst.la"
fi
echo "$libs"
fi
--
1.6.6
|