From f5f262be8ae54bd0c0f52802f2007ec89163756f Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Tue, 24 Apr 2012 11:52:35 +0200 Subject: [PATCH 1/2] SConstruct: respect sysroot also in SPLINTOPTS Signed-off-by: Martin Jansa Signed-off-by: Denis 'GNUtoo' Carikli --- 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