[PATCH/RFC] libgloss: build with -nostdinc

Corinna Vinschen vinschen@redhat.com
Wed Feb 16 08:43:38 GMT 2022


On Feb 12 02:23, Mike Frysinger wrote:
> We don't want libgloss building against C library headers that happened
> to be installed with the toolchain, so add -nostdinc to the build.  We
> still need access to the compiler internal headers, so probe those and
> include them via -isystem.  This uses a similar probing style as glibc,
> which has used it for over a decade, so it should be safe & stable.
> 
> This should prevent any latent bugs due to testing with a toolchain that
> is fully configured & installed already.
> ---
> NB: tested against these targets:
> aarch64-elf arc-elf arm-eabi
> bfin-elf
> cr16-elf cris-elf csky-elf
> epiphany-elf
> frv-elf
> h8300-elf
> i686-pc-cygwin iq2000-elf
> m68k-elf microblaze-elf mips-elf mn10300-elf moxie-elf
> nds32le-elf
> or1k-elf
> powerpc-elf
> sparc-elf sparc-rtems
> v850e-elf visium-elf
> 
>  libgloss/configure    | 20 ++++++++++++++++++++
>  libgloss/configure.ac | 11 +++++++++++
>  2 files changed, 31 insertions(+)

Great, please push.


Thanks,
Corinna



More information about the Newlib mailing list