public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* g++ -mno-cygwin flag not recognized
@ 2017-05-13  3:17 Allan C.
  2017-05-13  3:41 ` René Berber
  0 siblings, 1 reply; 3+ messages in thread
From: Allan C. @ 2017-05-13  3:17 UTC (permalink / raw)
  To: cygwin

Hi all,

I am trying to build a win32 project with gcc 5.4 with the flag
-mno-cygwin but the flag is not recognized. Is there an approach I
could release an exe without bundling cygwin's dll?

Regards,
Allan C.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: g++ -mno-cygwin flag not recognized
  2017-05-13  3:17 g++ -mno-cygwin flag not recognized Allan C.
@ 2017-05-13  3:41 ` René Berber
  2017-05-13  3:54   ` Allan C.
  0 siblings, 1 reply; 3+ messages in thread
From: René Berber @ 2017-05-13  3:41 UTC (permalink / raw)
  To: cygwin

On 5/12/2017 10:03 PM, Allan C. wrote:

> I am trying to build a win32 project with gcc 5.4 with the flag
> -mno-cygwin but the flag is not recognized. Is there an approach I
> could release an exe without bundling cygwin's dll?

That option has been deprecated for many years.

What you have to do is install one of the cross-compilers (32-bit, or
64-bit, or both), and cross compile the project.

Cross compiling can be as easy as defining CC as the cross-compiler, and
as hard as having to build all the dependencies and make sure all the
right, cross-compiles libraries, are the only ones used.
-- 
R. Berber


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: g++ -mno-cygwin flag not recognized
  2017-05-13  3:41 ` René Berber
@ 2017-05-13  3:54   ` Allan C.
  0 siblings, 0 replies; 3+ messages in thread
From: Allan C. @ 2017-05-13  3:54 UTC (permalink / raw)
  To: cygwin

On 13 May 2017 at 11:17, René Berber <rene.berber@gmail.com> wrote:
> On 5/12/2017 10:03 PM, Allan C. wrote:
>
>> I am trying to build a win32 project with gcc 5.4 with the flag
>> -mno-cygwin but the flag is not recognized. Is there an approach I
>> could release an exe without bundling cygwin's dll?
>
> That option has been deprecated for many years.
>
> What you have to do is install one of the cross-compilers (32-bit, or
> 64-bit, or both), and cross compile the project.
>
> Cross compiling can be as easy as defining CC as the cross-compiler, and
> as hard as having to build all the dependencies and make sure all the
> right, cross-compiles libraries, are the only ones used.
> --
> R. Berber
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

Got it. Thanks René. Cheers.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-13  3:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-13  3:17 g++ -mno-cygwin flag not recognized Allan C.
2017-05-13  3:41 ` René Berber
2017-05-13  3:54   ` Allan C.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).