diff options
Diffstat (limited to 'meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch')
-rw-r--r-- | meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch b/meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch new file mode 100644 index 0000000000..2b66155eea --- /dev/null +++ b/meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch | |||
@@ -0,0 +1,30 @@ | |||
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 | |||