This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Properly get cygwin dir from sub-configure
- From: Peter Foley <pefoley2 at pefoley dot com>
- To: newlib at sourceware dot org
- Cc: Peter Foley <pefoley2 at pefoley dot com>
- Date: Sat, 2 Apr 2016 11:02:10 -0400
- Subject: [PATCH] Properly get cygwin dir from sub-configure
- Authentication-results: sourceware.org; auth=none
When configuring subdirs of newlib, such as libc for example, the path
to the winsup directory is calculated relative to the current srcdir,
which only works at the top-level.
Fix the path to be relative to newlib's top-level srcdir.
newlib/ChangeLog:
configure.host: use $newlib_basedir to calculate cygwin_srcdir
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
newlib/configure.host | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/newlib/configure.host b/newlib/configure.host
index 8b0846e..7ac3717 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -568,7 +568,7 @@ esac
case "${host}" in
*-*-cygwin*)
- test -z "$cygwin_srcdir" && cygwin_srcdir=`cd ${srcdir}/../winsup/cygwin; pwd`
+ test -z "$cygwin_srcdir" && cygwin_srcdir=`cd ${newlib_basedir}/../winsup/cygwin; pwd`
export cygwin_srcdir
default_newlib_io_c99_formats="yes"
default_newlib_io_long_long="yes"
--
2.8.0