Failing to link glib2 on mingw64 when using lld
Using lld 10.0.0-2 and trying to link glib2:
lld: error: unknown argument: --allow-shlib-undefined
collect2.exe: error: ld returned 1 exit status
[129/948] Linking target glib/tests/bitlock.exe
FAILED: glib/tests/bitlock.exe
cc @glib/tests/bitlock.exe.rsp
lld: error: unknown argument: --allow-shlib-undefined
collect2.exe: error: ld returned 1 exit status
[130/948] Linking target glib/tests/asyncqueue.exe
FAILED: glib/tests/asyncqueue.exe
cc @glib/tests/asyncqueue.exe.rsp
lld: error: unknown argument: --allow-shlib-undefined
collect2.exe: error: ld returned 1 exit status
[131/948] Linking target glib/tests/array-test.exe
FAILED: glib/tests/array-test.exe
cc @glib/tests/array-test.exe.rsp
lld: error: unknown argument: --allow-shlib-undefined
collect2.exe: error: ld returned 1 exit status
[132/948] Compiling C object glib/tests/d796b50@@markup-subparser@exe/markup-subparser.c.obj
[133/948] Compiling C object glib/tests/d796b50@@markup-escape@exe/markup-escape.c.obj
[134/948] Linking target glib/gspawn-win64-helper-console.exe
FAILED: glib/gspawn-win64-helper-console.exe
cc @glib/gspawn-win64-helper-console.exe.rsp
lld: error: unknown argument: --allow-shlib-undefined
collect2.exe: error: ld returned 1 exit status
[135/948] Compiling C object glib/tests/d796b50@@convert@exe/convert.c.obj
[136/948] Linking target glib/tests/atomic.exe
FAILED: glib/tests/atomic.exe
cc @glib/tests/atomic.exe.rsp
lld: error: unknown argument: --allow-shlib-undefined
collect2.exe: error: ld returned 1 exit status
[137/948] Linking target glib/tests/base64.exe
FAILED: glib/tests/base64.exe
cc @glib/tests/base64.exe.rsp
lld: error: unknown argument: --allow-shlib-undefined
collect2.exe: error: ld returned 1 exit status