comment on why -static is used with MinGW build

This commit is contained in:
otavepto 2024-05-28 07:11:33 +03:00
parent 2646921695
commit 78ff7e2cd6

View File

@ -407,7 +407,10 @@ filter { "system:windows", "action:gmake*", }
} }
-- source: https://gcc.gnu.org/onlinedocs/gcc/Cygwin-and-MinGW-Options.html -- source: https://gcc.gnu.org/onlinedocs/gcc/Cygwin-and-MinGW-Options.html
linkoptions { linkoptions {
"-static-libgcc", "-static-libstdc++", "-static", -- I don't know why but if libgcc/libstdc++ as well as pthreads are not statically linked
-- none of the output binary .dlls will reach their DllMain() in x64dbg
-- even when they're force-loaded in any process they immediately unload
"-static",
-- from docs: "specifies that the typical Microsoft Windows predefined macros are to be set in the pre-processor, -- from docs: "specifies that the typical Microsoft Windows predefined macros are to be set in the pre-processor,
-- but does not influence the choice of runtime library/startup code" -- but does not influence the choice of runtime library/startup code"
-- optional really -- optional really