Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-28 03:29:14 +0300
committerMike Frysinger <vapier@gentoo.org>2022-01-29 09:35:30 +0300
commit6a59fc444b46681b59ce3152cfbd3c9e024455fa (patch)
tree61bb4aa64f7c01f4e75ecb1463887bc243cf5358 /newlib/configure.host
parentfc0bd2eb039bfe83d4d6c0ec6507cc5f631edad7 (diff)
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.
Diffstat (limited to 'newlib/configure.host')
-rw-r--r--newlib/configure.host2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index ca6b46f03..bf4a555e6 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"