summaryrefslogtreecommitdiffstats
path: root/patches/bustle-0.2.0/generic/add-rudimentary-cross-compile-support.diff
blob: 586dbf824ae5308cd60d302390372b58e3dc52c8 (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
From: Marc Kleine-Budde <mkl@pengutronix.de>
Subject: Add rudimentary cross compile support

This patch adds rudimentary cross compilation support.

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

applied upstream: 20090415

---
 Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: bustle-0.2.0/Makefile
===================================================================
--- bustle-0.2.0.orig/Makefile
+++ bustle-0.2.0/Makefile
@@ -1,5 +1,6 @@
 bustle-dbus-monitor: bustle-dbus-monitor.c
-	gcc -g `pkg-config --cflags --libs dbus-1 glib-2.0` \
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
+	-g -O2 `pkg-config --cflags --libs dbus-1 glib-2.0` \
 	-Wall -Wunused \
 	-o bustle-dbus-monitor bustle-dbus-monitor.c