Linking of application failed with: can’t link soft-float modules with single-float modules

When building an application for RISC-V you may get following linking error:

The problem is that ABI of the library does not match the application. You can use following command to check flags:

The solution is to build the library with the same flags like the rest of application. This can be achieved by using following flags for CMake.

If your target has different support for float, you might need to change suggested march and mabi.