Me and Pali had some discussion about this topic, and Pali has pointed out an issue with using -lwindowsapp.
If you look at gcc spec, you will see -lkernel32 following mingw-w64's -l flags. The issue is that this will cause mingw-w64's static code directly reference symbols from kernel32.dll, and not api sets linked with -lwindowsapp. Perfectly, we would want to replace this -lkernel32 with -lwindowsappcompat -lwindowsapp. However, there seems to be no simple way to achieve this. One way this can be achieved is by getting the specs with `gcc -dumpspecs`, modifying them (with sed, for example) and passing modified specs to gcc with -specs=. I see no simple way how this can be done with build systems like meson or cmake. This also would not work for clang. - Kirill Makurin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
