On 2023-01-17 15:25, Don Kuenz via Cygwin wrote:
Greetings,

Back in the day i686-pc-mingw32-gcc used the -mno-cygwin flag to break
the implicit link to cygwin1.dll. It enabled developers to release a
standalone binary. In other words, cygwin1.dll did not have to be
installed on the user's PC in order for a standalone binary to run.

i686-pc-mingw32-gcc is no longer available. And i686-w64-mingw32-gcc now
seems to create standalone binaries by default. The binaries run on a
target PC without cygwin1.dll installed.

Can someone confirm i686-w64-mingw32-gcc in its default mode now creates
standalone binaries?

The -no-/-cygwin options were removed in 2010 except for:

    $ info gcc Invoking Option
    /Windows

invoke.texi/Option Summary/x86 Windows Options at:

https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/doc/invoke.texi#l1454

1453 @emph{x86 Windows Options}
1454 @gccoptlist{-mconsole  -mcygwin  -mno-cygwin  -mdll @gol
1455 -mnop-fun-dllimport  -mthread @gol
1456 -municode  -mwin32  -mwindows  -fno-set-stack-executable}

from which the man gcc Windows options are generated with texi2pod and pod2man.

The mingw toolchains are used to build native Windows objects and files.

--
Take care. Thanks, Brian Inglis                 Calgary, Alberta, Canada

La perfection est atteinte                      Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter     not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer        but when there is no more to cut
                        -- Antoine de Saint-Exupéry

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

Reply via email to