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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy