]> sourceware.org Git - newlib-cygwin.git/commitdiff
newlib: fix cygwin -I path
authorMike Frysinger <vapier@gentoo.org>
Fri, 28 Jan 2022 00:29:14 +0000 (19:29 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 29 Jan 2022 06:35:30 +0000 (01:35 -0500)
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.

newlib/configure.host

index ca6b46f03e0926c617ccf984745ca91f97b91862..bf4a555e6da7a67e7f2da5e4d6872e2119fa6509 100644 (file)
@@ -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"
This page took 0.03091 seconds and 5 git commands to generate.