« Return to Thread: Patch for makefile.mgw for console mode of gnuplot 4.3 for windows

Re: Patch for makefile.mgw for console mode of gnuplot 4.3 for windows

by Tatsuro MATSUOKA-5 :: Rate this Message:

| View in Thread

Hello Benjamin


--- Benjamin Lindner  wrote:
The flag "-mwindows" has nothing to do with whether an application is
using GDI libraries or not. It specifies the type of startup code and
entry point of the application. So I cannot follow the wxwidgets
developers argumentation. But it's their decision to make.

I agree. But it seem to difficult to make their decision to change.

> However I can get useful information for disabling the the flag '-Wl,--subsystem,windows -mwindows':

> override it by a subsequent -Wl,--subsequent,console.

I am sorry but this is IMO a very bad solution to take.
This depends on the order of arguments on the command line, is not
portable and depends no binutils' actual interpretation of such a
double-specfication.
And it is simply wrong. An application is either a GUI-subsystem
application or a console-subsystem application. If it's not a GUI
application, one shouldn't say so in the first place and not change
one's mind halfway through. It's not a clean method, IMO

OK. I under stand your statement.  Surely it should be clean.

> Tatsuro MATSUOKA wrote:
> > Hello
> >
> > After discussion with Vadim Zeitlin, who is one of the developer of wxWidget, in the following
> address
> >
> >
>
http://groups.google.co.jp/group/wx-dev/browse_thread/thread/65a3af28e9a21bca/89264cf1c66e16f3#89264cf1c66e16f3

> >
> > I consider two different patch. First one, 'makefile.mgw.1.patch' is the same as that I have
> proposed
> > in the previous post.
> > Second one is add overrideng option to when PIPES flag is on: 'makefile.mgw.2.patch'  
> >
> > First patch:
> > - WX_LIBS = $(shell wx-config --libs)
> > + WX_LIBS = $(shell wx-config --libs | sed -e 's/ -Wl,--subsystem,windows -mwindows//')
> > This removes  '-Wl,--subsystem,windows -mwindows' flag
>
> I'd propose a more robust version like
> sed -e "s+-Wl,--subsystem,windows++g" -e "s+-mwindows++g"

> Removing should not be dependent on spaces and the actual order of the
> erroneus commands.
>
> > Second patch:
> >   WX_LIBS = $(shell wx-config --libs)
> > + ifdef PIPES
> > + WX_LIBS += -Wl,--subsystem,console
> > + endif
> > add overrideing option for gnuplot.exe and wgnuplot_pipes.exe
> >
> > I cannot figure out which is better.  Please discuss this matter and produce better patch.
> > Of course, more smart ideas are highly welcome.
>
> The former. The latter looks wrong and is highly unportable as it
> depends on the order of the flags on the command line and their
> interpreation by binutils.
I submit a patch considering Benjamin suggestion.

Benjamin. Thank you for your comprehensive and extensive suggestions.

Regards

Tatsuro


--------------------------------------
Yahoo! JAPAN - Internet Security for teenagers and parents.
http://pr.mail.yahoo.co.jp/security/

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

makefile.mgw.3.patch (514 bytes) Download Attachment

 « Return to Thread: Patch for makefile.mgw for console mode of gnuplot 4.3 for windows