meson: disable stack protector for mpv.com

This is a bare runner for mpv.exe. There is no need for a stack
protector here and when it is forced to be added by -fno-stack-protector
it complains about missing symbols, because we don't link any standard
libs here.

Fixes:
undefined symbol: __stack_chk_fail
undefined symbol: __stack_chk_guard

We could define those, but mpv.com wrapper doesn't need it.
This commit is contained in:
Kacper Michajłow
2025-03-26 01:28:50 +01:00
parent 97cb16d683
commit f972cb6dc4
+1 -1
View File
@@ -1820,7 +1820,7 @@ if get_option('cplayer')
if win32 and get_option('win32-subsystem') != 'console'
wrapper_sources= 'osdep/win32-console-wrapper.c'
executable('mpv', wrapper_sources, c_args: ['-municode', '-fno-asynchronous-unwind-tables'],
executable('mpv', wrapper_sources, c_args: ['-municode', '-fno-asynchronous-unwind-tables', '-fno-stack-protector'],
link_args: ['-municode', '-nostartfiles', '-nodefaultlibs'],
override_options: ['b_sanitize=none'],
name_suffix: 'com', install: true)