mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user