[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-devel] [PATCH 2/2] MinGW: do not use -mwindows as it is intende

From: Pete Batard
Subject: [Libcdio-devel] [PATCH 2/2] MinGW: do not use -mwindows as it is intended for GUI apps
Date: Tue, 17 Jan 2012 01:02:47 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0

With -mwindows enabled, the console examples do not produce any output.

I think this should be disabled for MinGW, as is the case with cygwin, since it is meant to be used when compiling Windows GUI apps and will prevent stdout/stderr from reaching the console then.


>From 026492e7039708f31991bd368775b98d584d88a9 Mon Sep 17 00:00:00 2001
From: Pete Batard <address@hidden>
Date: Mon, 16 Jan 2012 19:47:48 +0000
Subject: [PATCH 2/2] MinGW: do not use -mwindows as it is intended for GUI
 apps compilation

* with -mwindows, stdout and stderr are redirected, which means that
  console samples do not output anything
--- |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ b/
index 47e540c..b2fba59 100644
--- a/
+++ b/
@@ -433,7 +433,7 @@ int has_timeout=sizeof(test.timeout);],
                   [Define 1 if you are compiling using MinGW])
        AC_DEFINE([HAVE_WIN32_CDROM], [1], 
                   [Define 1 if you have MinGW CD-ROM support])
-       LIBS="$LIBS -lwinmm -mwindows"
+       LIBS="$LIBS -lwinmm"
        cd_drivers="${cd_drivers}, MinGW "

reply via email to

[Prev in Thread] Current Thread [Next in Thread]