[PATCH] Properly get cygwin dir from sub-configure

Corinna Vinschen vinschen@redhat.com
Mon Apr 4 14:30:00 GMT 2016


On Apr  2 11:02, Peter Foley wrote:
> 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.

Jeff, was there a reason to use srcdir instead of newlib_basedir at
this point?

/me fuzzy on autoconf stuff...


Thanks,
Corinna

> 
> 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

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20160404/7220a64a/attachment.sig>


More information about the Newlib mailing list