[PATCH] Properly get cygwin dir from sub-configure
Jeff Johnston
jjohnstn@redhat.com
Mon Apr 4 21:36:00 GMT 2016
----- Original Message -----
> 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...
>
I didn't add that particular line. It dates back to 2003 with Chris Faylor. Configuration
in sub-directories has never worked properly usually due to missing variables set by parent levels.
-- Jeff J.
>
> 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
>
More information about the Newlib
mailing list