This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA]: Top-level configure patch to build Cygwin native newlib
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: aoliva at redhat dot com, jjohnstn at redhat dot com, vinschen at redhat dot com,gdb-patches at sources dot redhat dot com, newlib at sources dot redhat dot com,binutils at sources dot redhat dot com, gcc-patches at gnu dot org
- Date: Thu, 17 Jun 2004 09:56:53 +0200
- Subject: Re: [RFA]: Top-level configure patch to build Cygwin native newlib
- References: <Pine.LNX.4.44.0406161342140.7927-100000@tooth.toronto.redhat.com> <orn0332u9b.fsf@free.redhat.lsd.ic.unicamp.br> <200406161919.i5GJJR6D023578@greed.delorie.com>
Hi DJ,
On Jun 16 15:19, DJ Delorie wrote:
>
> > > It would be a good idea. IIRC, most of the top-level files are
> > > copied by sources from gcc. Did I get that correct, Chris?
> >
> > That's correct,
>
> No, it's not. I or Nathanael *manually* sync the toplevel files in
> *both* directions because neither side ever agreed to cede control to
> the other. I usually try to get the submitter to commit to both sides
> to save us the work, though.
the problem here is that I don't have checkin permissions on the gcc
repository. I've applied the below patch now to the sourceware repository.
It would be nice if you could pick it up for gcc.
Thanks,
Corinna
2004-06-17 Corinna Vinschen <vinschen@redhat.com>
* configure.in: Don't build Cygwin native newlib if winsup
directory is missing. Emit warning instead.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/configure.in,v
retrieving revision 1.220
diff -p -u -r1.220 configure.in
--- configure.in 9 Jun 2004 08:32:34 -0000 1.220
+++ configure.in 17 Jun 2004 07:54:33 -0000
@@ -585,8 +585,13 @@ case "${target}" in
*-*-cygwin*)
target_configdirs="$target_configdirs target-libtermcap target-winsup"
noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
- # always build newlib.
- skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
+ # always build newlib if winsup directory is present.
+ if test -d winsup
+ then
+ skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
+ else
+ echo "Warning: winsup is missing so newlib can't be built."
+ fi
# Can't build gdb for Cygwin if not native.
case "${host}" in
--
Corinna Vinschen
Cygwin Co-Project Leader
Red Hat, Inc.