Files
poky/meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch
Alejandro Hernandez Samaniego f3ad36d15c newlib: Upgrade 4.2.0 -> 4.3.0
- Rebased fix-rs6000-crt0.patch
- Patch fix_makefile_include_arm_h.patch is no longer required, the newlib
  header dependency has been fixed upstream at 26f9cfd7
- LICENSE checksum change due to:
  - Adding SPDX identifier
  - Deleted Phoenix Systems from License and updated each licenses
  numbers accordingly.
- Add a dummy limits.h header, to make the improved preprocessor
  checks happy during configure.
- Add a patch for libgloss to maintain current behavior of TCLIBC=newlib
  by making libgloss DEPEND on newlib and use its installed headers.
- Switch to git fetcher to simplify fetching the sources and avoid future
  issues due to the way newlib release snapshots were being published.

(From OE-Core rev: 1c9cbb27dfe37ca4574c4285fb03ce394dee5ed1)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-01-29 19:24:22 +00:00

31 lines
1.1 KiB
Diff

Upstream-Status: Inappropriate [OE-Specific]
Since commit e0c0ad82 libgloss started passing the -nostdinc to CC.
They dont want to build against C library headers that are already in
the system to avoid pollution, however, we purposely build libgloss
against the newly built newlib C library, thats why we keep newlib
and libgloss in separate recipes and create a dependency between them.
This causes an issue where bitbake stops finding newlib headers while
libgloss is being built.
Do not pass -nostdinc to CC to maintain current behavior of
TCLIBC=newlib
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Index: newlib-3.0.0/libgloss/configure
===================================================================
--- newlib-3.0.0.orig/libgloss/configure
+++ newlib-3.0.0/libgloss/configure
@@ -5106,7 +5106,7 @@ fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_isystem" >&5
$as_echo "$libc_cv_compiler_isystem" >&6; }
-CC="$CC -nostdinc $libc_cv_compiler_isystem"
+CC="$CC $libc_cv_compiler_isystem"
host_makefile_frag_path=$host_makefile_frag