This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

Re: [RFA]: Top-level configure patch to build Cygwin native newlib


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.


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