Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit caeeabd

Browse files
committed
meson: mingw: Allow multiple definitions
I didn't carry this forward from the win32 template. It's not needed anymore for the reason stated therein, but it turns out to be required to e.g. override getopt. Possibly a better solution exists, but that's for later. Discussion: http://postgr.es/m/20220928022724.erzuk5v4ai4b53do@awork3.anarazel.de
1 parent dfefa0e commit caeeabd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ elif host_system == 'windows'
277277
# ldflags += '/nxcompat' # generated by msbuild, should have it for ninja?
278278
else
279279
ldflags += '-Wl,--stack,@0@'.format(cdata.get('WIN32_STACK_RLIMIT'))
280+
# Need to allow multiple definitions, we e.g. want to override getopt.
281+
ldflags += '-Wl,--allow-multiple-definition'
280282
endif
281283

282284
os_deps += cc.find_library('ws2_32', required: true)

0 commit comments

Comments
 (0)