> > how does -static differ from -statlc-libgcc? > -static-libgcc will link only libgcc statically.
> when compiling to .o files, -static is a problem isn't it? or not? > No, it's not. When compiling to .o files, these flags are ignored. > with -static, what happens when you combine with -lkernel32? > Nothing. kernel32 and all the other system DLLs will be linked dynamically. > does it still use the kernel32.dll, or does it try to statically link in > that DLL? not sure I completely understand the extent/meaning of -static. > It means: link all the libraries (that have a static version) statically. For example, libstdc++, libgcc, winpthreads all have static versions. Why don't you give it a try ;)
------------------------------------------------------------------------------
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
