diff options
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd/gpsd/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch')
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch b/meta-oe/recipes-navigation/gpsd/gpsd/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch new file mode 100644 index 000000000..55ef7042d --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 5266eb72cbc8193faa2345b8774b0f159e61c067 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 2/4] SConstruct: respect sysroot also in SPLINTOPTS | ||
5 | |||
6 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
7 | --- | ||
8 | SConstruct | 5 ++++- | ||
9 | 1 files changed, 4 insertions(+), 1 deletions(-) | ||
10 | |||
11 | diff --git a/SConstruct b/SConstruct | ||
12 | index 21b2205..0cf5799 100644 | ||
13 | --- a/SConstruct | ||
14 | +++ b/SConstruct | ||
15 | @@ -1224,7 +1224,10 @@ def Utility(target, source, action): | ||
16 | |||
17 | # Report splint warnings | ||
18 | # Note: test_bits.c is unsplintable because of the PRI64 macros. | ||
19 | -env['SPLINTOPTS'] = "-I/usr/include/libusb-1.0 +quiet" | ||
20 | +if env['sysroot']: | ||
21 | + env['SPLINTOPTS'] = "-I%s/usr/include/libusb-1.0 +quiet" % env['sysroot'] | ||
22 | +else: | ||
23 | + env['SPLINTOPTS'] = "-I/usr/include/libusb-1.0 +quiet" | ||
24 | |||
25 | def Splint(target,sources, description, params): | ||
26 | return Utility(target,sources+generated_sources,[ | ||
27 | -- | ||
28 | 1.7.8.5 | ||
29 | |||