Mirai's Miscellaneous Misadventures
M50 / meta / meson.diff
1diff --git a/mesonbuild/linkers/detect.py b/mesonbuild/linkers/detect.py
2index 1094f5e..5b9ea86 100644
3--- a/mesonbuild/linkers/detect.py
4+++ b/mesonbuild/linkers/detect.py
5@@ -161,9 +161,9 @@ def guess_nix_linker(env: 'Environment', compiler: T.List[str], comp_class: T.Ty
6 lld_cls = linkers.LLVMLD64DynamicLinker
7 else:
8 if isinstance(comp_class.LINKER_PREFIX, str):
9- cmd = compiler + override + [comp_class.LINKER_PREFIX]
10+ cmd = compiler + override + [comp_class.LINKER_PREFIX + '-h']
11 else:
12- cmd = compiler + override + comp_class.LINKER_PREFIX
13+ cmd = compiler + override + comp_class.LINKER_PREFIX + ['-h']
14 _, _, newerr = Popen_safe(cmd)
15 if 'wasm-ld' in newerr:
16 lld_cls = linkers.LLVMWASMDynamicLinker