aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/gpsd/gpsd-3.7/0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch
blob: 40baa019471ecb72be84a452d24b93ad52501bae (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
From f5f262be8ae54bd0c0f52802f2007ec89163756f Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Tue, 24 Apr 2012 11:52:35 +0200
Subject: [PATCH 1/2] SConstruct: respect sysroot also in SPLINTOPTS

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
---
 SConstruct |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/SConstruct b/SConstruct
index a25e88a..a1bddb9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1277,7 +1277,10 @@ def Utility(target, source, action):
 
 # Report splint warnings
 # Note: test_bits.c is unsplintable because of the PRI64 macros.
-splintopts = "-I/usr/include/libusb-1.0 +quiet"
+if not env['sysroot']:
+    splintopts = "-I/usr/include/libusb-1.0 +quiet"
+else:
+    splintopts = "-I%s/usr/include/libusb-1.0 +quiet" % env['sysroot']
 # splint does not know about multi-arch, work around that
 ma_status, ma = _getstatusoutput('dpkg-architecture -qDEB_HOST_MULTIARCH')
 if ma_status == 0:
-- 
1.7.5.4