summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/gpsd/gpsd-3.7/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd/gpsd-3.7/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch')
-rw-r--r--meta-oe/recipes-navigation/gpsd/gpsd-3.7/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd-3.7/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch b/meta-oe/recipes-navigation/gpsd/gpsd-3.7/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch
new file mode 100644
index 000000000..40baa0194
--- /dev/null
+++ b/meta-oe/recipes-navigation/gpsd/gpsd-3.7/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch
@@ -0,0 +1,30 @@
1From f5f262be8ae54bd0c0f52802f2007ec89163756f Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Tue, 24 Apr 2012 11:52:35 +0200
4Subject: [PATCH 1/2] SConstruct: respect sysroot also in SPLINTOPTS
5
6Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
8---
9 SConstruct | 5 ++++-
10 1 files changed, 4 insertions(+), 1 deletions(-)
11
12diff --git a/SConstruct b/SConstruct
13index a25e88a..a1bddb9 100644
14--- a/SConstruct
15+++ b/SConstruct
16@@ -1277,7 +1277,10 @@ def Utility(target, source, action):
17
18 # Report splint warnings
19 # Note: test_bits.c is unsplintable because of the PRI64 macros.
20-splintopts = "-I/usr/include/libusb-1.0 +quiet"
21+if not env['sysroot']:
22+ splintopts = "-I/usr/include/libusb-1.0 +quiet"
23+else:
24+ splintopts = "-I%s/usr/include/libusb-1.0 +quiet" % env['sysroot']
25 # splint does not know about multi-arch, work around that
26 ma_status, ma = _getstatusoutput('dpkg-architecture -qDEB_HOST_MULTIARCH')
27 if ma_status == 0:
28--
291.7.5.4
30