OSDN Git Service

* Makefile.in (libcygwin.a): Use ar commands to build libcygwin.a since adding
authorcgf <cgf>
Mon, 26 Nov 2001 20:20:42 +0000 (20:20 +0000)
committercgf <cgf>
Mon, 26 Nov 2001 20:20:42 +0000 (20:20 +0000)
an archive doesn't work the way we want it to.

winsup/cygwin/ChangeLog
winsup/cygwin/Makefile.in
winsup/cygwin/fhandler_console.cc

index 10114c6..88ba2af 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-26  Christopher Faylor  <cgf@redhat.com>
+
+       * Makefile.in (libcygwin.a): Use ar commands to build libcygwin.a since
+       adding an archive doesn't work the way we want it to.
+
 2001-11-24  Christopher Faylor  <cgf@redhat.com>
 
        * fhandler_disk_file.cc (fhandler_cygdrive::readdir): Avoid reporting
index 243e54e..cc2a801 100644 (file)
@@ -198,7 +198,7 @@ new-$(DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DEF_FILE) $(DLL_IMPORTS) $(LIBC) $(
        @rm -f stamp-cygwin-lib
 
 $(LIB_NAME): new-$(DLL_NAME) $(LIBCOS) stamp-cygwin-lib
-       $(AR) rcv $(LIB_NAME) $(LIBCOS) cygdll.a
+       (echo create $(LIB_NAME); echo addlib cygdll.a; echo addmod $(LIBCOS); echo save) | $(AR) -M
 
 stamp-cygwin-lib:
        @touch stamp-cygwin-lib
index 3598810..ae3608c 100644 (file)
@@ -585,6 +585,11 @@ fhandler_console::open (path_conv *, int flags, mode_t)
       cflags |= ENABLE_PROCESSED_INPUT;
       SetConsoleMode (get_io_handle (), ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT | cflags);
     }
+  if (GetConsoleMode (get_output_handle (), &cflags))
+    {
+      cflags |= ENABLE_PROCESSED_OUTPUT;
+      SetConsoleMode (get_io_handle (), cflags);
+    }
 
   TTYCLEARF (RSTCONS);
   set_open_status ();