diff --git a/meson.build b/meson.build index 02c086c04e..cd410319f3 100644 --- a/meson.build +++ b/meson.build @@ -277,6 +277,8 @@ elif host_system == 'windows' # ldflags += '/nxcompat' # generated by msbuild, should have it for ninja? else ldflags += '-Wl,--stack,@0@'.format(cdata.get('WIN32_STACK_RLIMIT')) + # Need to allow multiple definitions, we e.g. want to override getopt. + ldflags += '-Wl,--allow-multiple-definition' endif os_deps += cc.find_library('ws2_32', required: true)