https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95122
--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- Don't use -mhard-float or -msoft-float. Instead, you should be using -mfloat-abi=[hard|softfp|soft] as appropriate. Also, rather than encoding this into various sets of flags you should configure the compiler with --with-float=[hard|softfp|soft] as your environment requires. Then it should not be necessary to pass various flags into the library builds. There's no such option as -mhardfloat.