summaryrefslogtreecommitdiff
blob: ba22d2bda0e0ed9222bc451e9aa15f7809e935dd (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
From da2369a8e72578b5c5636adb78accd8bf66b3311 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Mon, 11 Mar 2013 12:35:34 -0400
Subject: [PATCH] libgps.a: fix building w/dbus support

The current libgps.a logic doesn't pass down pkg-config output from
dbus and such which breaks building when compiling:

gcc -o libgps_dbus.o -c -D_GNU_SOURCE -Wextra -Wall -Wno-uninitialized \
	-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations \
	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type \
	-O2 libgps_dbus.c
libgps_dbus.c:26:23: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 SConstruct | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index e5d1f54..a56fa9b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -886,7 +886,9 @@ gpsdlibs = ["-lgpsd"] + usblibs + bluezlibs + gpslibs + caplibs
 #          linking
 # The final executable will build but not be portable.
 
-env.StaticLibrary(target = 'libgps.a', source = libgps_sources)
+env.StaticLibrary(target='libgps.a',
+                  source=libgps_sources,
+                  parse_flags=dbus_libs + rtlibs)
 
 # Source groups
 
-- 
1.8.1.2