Link with -mconsole instead of -mwindows

Not sure why it even worked with -mwindows, but this is the correct
linking option for the `main()` entry point.
This commit is contained in:
Robbert van der Helm
2020-12-10 18:01:11 +01:00
parent e3a52bca14
commit c05040d98b
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -17,9 +17,9 @@ needs_exe_wrapper = true
# applications are always in sync. This might not be needed anymore once Meson
# cross compiling to multiple targets at once.
# https://github.com/mesonbuild/meson/issues/5125
cpp_link_args = ['-mwindows']
cpp_link_args = ['-mconsole']
# For instance, this should be in the 64-bit only cross-file
# c_args = ['-m64']
# cpp_args = ['-m64']
# cpp_link_args = ['-m64', '-mwindows']
# cpp_link_args = ['-m64', '-mconsole']