diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-01-28 03:17:04 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-29 09:35:30 +0300 |
commit | 6444f108d9a4a6fac8462c116d4104889b5efb95 (patch) | |
tree | ce46465ceabd749533a136e1decbfe8f3697bb13 /newlib/configure | |
parent | 502cf4b7b5b79b83e8f41b4074212f9e27753f0b (diff) |
newlib: export abs_newlib_basedir for all subdirs
When using the top-level configure script but subdir Makefiles, the
newlib_basedir value gets a bit out of sync: it's relative to where
configure lives, not where the Makefile lives. Move the abs setting
from the top-level configure script into acinclude.m4 so we can rely
on it being available everywhere. Although this commit doesn't use
it anywhere, just lays the groundwork.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-x | newlib/configure | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/newlib/configure b/newlib/configure index 31b790f2a..974f4086c 100755 --- a/newlib/configure +++ b/newlib/configure @@ -769,6 +769,7 @@ build_os build_vendor build_cpu build +abs_newlib_basedir newlib_basedir MAY_SUPPLY_SYSCALLS_FALSE MAY_SUPPLY_SYSCALLS_TRUE @@ -3344,6 +3345,9 @@ else fi +abs_newlib_basedir=`cd "${newlib_basedir}" && pwd` + + if test "`cd $srcdir && pwd`" != "`pwd`"; then @@ -12005,7 +12009,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12008 "configure" +#line 12012 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12111,7 +12115,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12114 "configure" +#line 12118 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12370,7 +12374,6 @@ fi # These get added in the top-level configure.in, except in the case where # newlib is being built natively. LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include` -abs_newlib_basedir=`cd ${newlib_basedir} && pwd` if test -z "${LIBC_INCLUDE_GREP}"; then CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include" else |