]> sourceware.org Git - newlib-cygwin.git/commit
newlib: use abs_newlib_basedir for -I paths
authorMike Frysinger <vapier@gentoo.org>
Fri, 28 Jan 2022 00:24:16 +0000 (19:24 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 29 Jan 2022 06:35:30 +0000 (01:35 -0500)
commitfc0bd2eb039bfe83d4d6c0ec6507cc5f631edad7
tree422d9ccfdd06fdb179b04fcf088f95b3e63e139f
parent6444f108d9a4a6fac8462c116d4104889b5efb95
newlib: use abs_newlib_basedir for -I paths

When we had configure scripts in subdirs, the newlib_basedir value
was computed relative to that, and it'd be the same when used in the
Makefile in the same dir.  With many subdir configure scripts removed,
the top-level configure & Makefile can't use the same relative path.
So switch the subdir Makefiles over to abs_newlib_basedir when they
use -I to find source headers.

Do this for all subdirs, even ones with configure scripts and where
newlib_basedir works.  This makes the code consistent, and avoids
surprises if the configure script is ever removed in the future as
part of merging to the higher level.

Some of the subdirs were using -I$(newlib_basedir)/../newlib/ for
some reason.  Collapse those too since newlib_basedir points to the
newlib source tree already.
28 files changed:
newlib/libc/machine/i386/Makefile.am
newlib/libc/machine/i386/Makefile.in
newlib/libc/machine/xstormy16/Makefile.am
newlib/libc/machine/xstormy16/Makefile.in
newlib/libc/sys/arm/Makefile.am
newlib/libc/sys/arm/Makefile.in
newlib/libm/machine/aarch64/Makefile.am
newlib/libm/machine/aarch64/Makefile.in
newlib/libm/machine/arm/Makefile.am
newlib/libm/machine/arm/Makefile.in
newlib/libm/machine/i386/Makefile.am
newlib/libm/machine/i386/Makefile.in
newlib/libm/machine/mips/Makefile.am
newlib/libm/machine/mips/Makefile.in
newlib/libm/machine/nds32/Makefile.am
newlib/libm/machine/nds32/Makefile.in
newlib/libm/machine/powerpc/Makefile.am
newlib/libm/machine/powerpc/Makefile.in
newlib/libm/machine/pru/Makefile.am
newlib/libm/machine/pru/Makefile.in
newlib/libm/machine/riscv/Makefile.am
newlib/libm/machine/riscv/Makefile.in
newlib/libm/machine/sparc/Makefile.am
newlib/libm/machine/sparc/Makefile.in
newlib/libm/machine/spu/Makefile.am
newlib/libm/machine/spu/Makefile.in
newlib/libm/machine/x86_64/Makefile.am
newlib/libm/machine/x86_64/Makefile.in
This page took 0.032707 seconds and 5 git commands to generate.