1Upstream-Status: Inappropriate  [OE-Specific]
2
3Since commit e0c0ad82 libgloss started passing the -nostdinc to CC.
4
5They dont want to build against C library headers that are already in
6the system to avoid pollution, however, we purposely build libgloss
7against the newly built newlib C library, thats why we keep newlib
8and libgloss in separate recipes and create a dependency between them.
9
10This causes an issue where bitbake stops finding newlib headers while
11libgloss is being built.
12
13Do not pass -nostdinc to CC to maintain current behavior of
14TCLIBC=newlib
15
16
17Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
18Index: newlib-3.0.0/libgloss/configure
19===================================================================
20--- newlib-3.0.0.orig/libgloss/configure
21+++ newlib-3.0.0/libgloss/configure
22@@ -5106,7 +5106,7 @@ fi
23 fi
24 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_isystem" >&5
25 $as_echo "$libc_cv_compiler_isystem" >&6; }
26-CC="$CC -nostdinc $libc_cv_compiler_isystem"
27+CC="$CC $libc_cv_compiler_isystem"
28
29 host_makefile_frag_path=$host_makefile_frag
30
31