Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame^] | 1 | Upstream-Status: Inappropriate [OE-Specific] |
| 2 | |
| 3 | Since commit e0c0ad82 libgloss started passing the -nostdinc to CC. |
| 4 | |
| 5 | They dont want to build against C library headers that are already in |
| 6 | the system to avoid pollution, however, we purposely build libgloss |
| 7 | against the newly built newlib C library, thats why we keep newlib |
| 8 | and libgloss in separate recipes and create a dependency between them. |
| 9 | |
| 10 | This causes an issue where bitbake stops finding newlib headers while |
| 11 | libgloss is being built. |
| 12 | |
| 13 | Do not pass -nostdinc to CC to maintain current behavior of |
| 14 | TCLIBC=newlib |
| 15 | |
| 16 | |
| 17 | Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> |
| 18 | Index: 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 | |