This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Properly get cygwin dir from sub-configure


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]