Skip to content

Commit

Permalink
add the make-linebuf-mingw.patch & add readme file patched descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
niXman committed Oct 7, 2012
1 parent 82bb81f commit e2fdd1b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
30 changes: 30 additions & 0 deletions patches/README.TXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

- gcc-4.6-cloog_lang_c.patch
...

- gcc-4.6-iconv.patch
...

- gcc-4.6-stdthreads.patch
...

- gcc-4.7-iconv.patch
...

- gcc-4.7-stdthreads.patch
...

- gcc-4.8-iconv.patch
...

- make-linebuf-mingw.patch
From Jonathan Liu ([email protected])
The difference is that build_w32.bat doesn't define HAVE_LOCALE_H.
The mingw-builds make uses the configure script which sets HAVE_LOCALE_H to 1.
If HAVE_LOCALE_H is set to 1, setlocale(LC_ALL, "") is called in main.cpp
and this prevents line buffering from working properly for some reason.

- make-remove-double-quote.patch
From Jonathan Liu ([email protected])
Read this: http://lists.gnu.org/archive/html/make-w32/2012-05/msg00000.html
and this: http://lists.gnu.org/archive/html/make-w32/2012-09/msg00000.html
14 changes: 14 additions & 0 deletions patches/make-linebuf-mingw.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- make.orig/main.c
+++ make/main.c
@@ -971,8 +971,11 @@

#endif

+/* setlocale interferes with line buffering if using parallel make on MinGW */
+#ifndef __MINGW32__
/* Set up gettext/internationalization support. */
setlocale (LC_ALL, "");
+#endif
/* The cast to void shuts up compiler warnings on systems that
disable NLS. */
(void)bindtextdomain (PACKAGE, LOCALEDIR);
5 changes: 4 additions & 1 deletion scripts/make_cvs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ REV=09/21/2012

#

PATCHES=( make-remove-double-quote.patch )
PATCHES=(
make-remove-double-quote.patch
make-linebuf-mingw.patch
)

#

Expand Down

0 comments on commit e2fdd1b

Please sign in to comment.