diff options
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.patch | 30 |
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 @@ | |||
1 | From f5f262be8ae54bd0c0f52802f2007ec89163756f Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Tue, 24 Apr 2012 11:52:35 +0200 | ||
4 | Subject: [PATCH 1/2] SConstruct: respect sysroot also in SPLINTOPTS | ||
5 | |||
6 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
7 | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | ||
8 | --- | ||
9 | SConstruct | 5 ++++- | ||
10 | 1 files changed, 4 insertions(+), 1 deletions(-) | ||
11 | |||
12 | diff --git a/SConstruct b/SConstruct | ||
13 | index 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 | -- | ||
29 | 1.7.5.4 | ||
30 | |||