RE: Patch for premain() function

"Ralf Habacker" <[email protected]>
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <008801c26e50$d3fb8370$686607d5@BRAMSCHE>
> >Too bad you invalidate your patch by looking into GPL source for
> >implementation specifics.  We now cannot accept your patch for this
> >reason.  All code which will become a part of the executable itself
> >must remain in the public domain.
>
> This code in cygwin is simple enough that I don't think it should be an
> issue.
>
Thank you for you support.

> This doesn't mean that it is necessarily a good idea, but the GPL issue
> shouldn't be a show stopper.

Do you have a better generic solution for this problem ? Let me know if so.

Of course it is possible to patch the mingw or perhaps cygwin runtime to archive
this target, but this requires (for cygwin much) more time as using such a
premain hook.

This patch comes to life, because I was tired to recompile every time the mingw
runtime and the application if there ar changes in the hook code. Now you have
only to recompile the hook file/library and to relink the application.

Ralf







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.