D:/Soft/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Soft/msys64/mingw64/lib/libssh.a(misc.c.obj):(.text+0x19d0): multiple definition of `strndup'; D:/Soft/msys64/mingw64/lib/libnfs.a(libnfs_la-win32_compat.o):(.text+0x410): first defined here
libssh uses its own strndup with mingw, and when libssh and libnfs are both linked statically, ld will throw an error
D:/Soft/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Soft/msys64/mingw64/lib/libssh.a(misc.c.obj):(.text+0x19d0): multiple definition of `strndup'; D:/Soft/msys64/mingw64/lib/libnfs.a(libnfs_la-win32_compat.o):(.text+0x410): first defined here libssh uses its own strndup with mingw, and when libssh and libnfs are both linked statically, ld will throw an error