summaryrefslogtreecommitdiffstats
path: root/patches/DirectFB-1.3.0/generic/old-patches-for-reference/directfb-config_add-sysroot.diff
blob: f4404d3580d6df7259c06103b130b1e4eaab5e99 (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
52
From: Marc Kleine-Budde <mkl@pengutronix.de>
Subject: teach directfb-config sysroot

This patches teaches directfb-config about sysroot


Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

---
 directfb-config.in |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: DirectFB-1.0.1/directfb-config.in
===================================================================
--- DirectFB-1.0.1.orig/directfb-config.in
+++ DirectFB-1.0.1/directfb-config.in
@@ -159,7 +159,7 @@ while test $# -gt 0; do
         echo_imageprovider="$echo_imageprovider $moduledir/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_$i.o"
         case $i in
           imlib2)
-            echo_imageprovider="$echo_imageprovider -lImlib2 -lttf -lm -L/usr/X11R6/lib -lXext -lX11"
+            echo_imageprovider="$echo_imageprovider -lImlib2 -lttf -lm -lXext -lX11"
             ;;
           jpeg)
             echo_imageprovider="$echo_imageprovider -ljpeg"
@@ -224,7 +224,7 @@ fi
 
 if test "$echo_cflags" = "yes"; then
       if test @INCLUDEDIR@ != /usr/include ; then
-        cflags="-I@INCLUDEDIR@"
+        cflags="-I${SYSROOT}@INCLUDEDIR@"
       fi
       echo $cflags @THREADFLAGS@
 fi
@@ -272,7 +272,7 @@ if test -n "$echo_wm"; then
 fi
 
 if test -n "$echo_fusionsound"; then
-	echo -L$moduledir/interfaces/IFusionSound $echo_fusionsound
+	echo -L${SYSROOT}$moduledir/interfaces/IFusionSound $echo_fusionsound
 fi
 
 
@@ -297,7 +297,7 @@ if test -n "$echo_voodoo"; then
 fi
 
 if test "$echo_libs" = "yes"; then
-      libs=-L@libdir@
+      libs=-L${SYSROOT}@libdir@
 
       if test "$lib_directfb" = "yes"; then
 	 libs="$libs -ldirectfb -lfusion -ldirect @THREADLIB@ @ZLIB_LIBS@"