diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-01-27 19:29:14 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-29 01:35:30 -0500 |
commit | 6a59fc444b46681b59ce3152cfbd3c9e024455fa (patch) | |
tree | 61bb4aa64f7c01f4e75ecb1463887bc243cf5358 | |
parent | fc0bd2eb039bfe83d4d6c0ec6507cc5f631edad7 (diff) | |
download | newlib-6a59fc444b46681b59ce3152cfbd3c9e024455fa.zip newlib-6a59fc444b46681b59ce3152cfbd3c9e024455fa.tar.gz newlib-6a59fc444b46681b59ce3152cfbd3c9e024455fa.tar.bz2 |
newlib: fix cygwin -I path
This code snippet assumed it was only ever run in the top configure
script where srcdir would point to newlib/ which is parallel to the
winsup/ tree. This is incorrect for all of the subdir configure
scripts leading to bad -I flags in $(CC). Switch it over to the
new abs_newlib_basedir which should work in all subdirs.
-rw-r--r-- | newlib/configure.host | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index ca6b46f..bf4a555 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -641,7 +641,7 @@ esac case "${host}" in *-*-cygwin*) - test -z "$cygwin_srcdir" && cygwin_srcdir=`cd ${srcdir}/../winsup/cygwin; pwd` + test -z "$cygwin_srcdir" && cygwin_srcdir="${abs_newlib_basedir}/../winsup/cygwin" export cygwin_srcdir default_newlib_io_c99_formats="yes" default_newlib_io_long_long="yes" |