eb445dd8f921f0e4e0ec740d3e040bc7b251862d
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / newt / 0002-Remove-bogus-I-usr-include-slang-from-CPPFLAGS.patch
1 From 28145b46649165b94666ee585d064b41306e10fd Mon Sep 17 00:00:00 2001
2 From: Alex Suykov <alex.suykov@gmail.com>
3 Date: Sat, 10 Jan 2015 11:55:32 +0100
4 Subject: [PATCH newt 2/2] Remove bogus -I/usr/include/slang from CPPFLAGS
5
6 Hardcoding -I/usr/include/slang in CPPFLAGS is bogus for
7 cross-compilation. With recent versions of slang, the headers are
8 installed in ${sysroot}/usr/include directly, so there is no need for
9 an additional flag. And if one was needed, it should be added by the
10 configure script, after detecting the right header location.
11
12 Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 ---
15  Makefile.in | 2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/Makefile.in b/Makefile.in
19 index 17853e0..d32d784 100644
20 --- a/Makefile.in
21 +++ b/Makefile.in
22 @@ -5,7 +5,7 @@ CC = @CC@
23  CPP = @CPP@
24  CFLAGS = @CFLAGS@
25  LDFLAGS = @LDFLAGS@
26 -CPPFLAGS = -D_GNU_SOURCE -I/usr/include/slang @CPPFLAGS@ 
27 +CPPFLAGS = -D_GNU_SOURCE @CPPFLAGS@
28  GNU_LD = @GNU_LD@
29  
30  VERSION = @VERSION@
31 -- 
32 2.1.0
33