configure: Check whether we can compile the s390-ccw bios with -msoft-float
commit3af448b38677e7be5ccda6a65e06150abd1005b6
authorThomas Huth <thuth@redhat.com>
Tue, 25 May 2021 14:20:32 +0000 (25 16:20 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 21 Jun 2021 06:48:21 +0000 (21 08:48 +0200)
tree56fa50aa8a88ee6f25874bbd721e16a26dae3c2b
parent463e50da8bf81bb3eff108e4bdd8fa7aadb12f4c
configure: Check whether we can compile the s390-ccw bios with -msoft-float

The -msoft-float switch is not available in older versions of Clang.
Since we rely on the compiler to not generate floating point instructions
unexpectedly, we block those old compilers now via a test in the configure
script. Note that for some weird reasons, the Clang compiler only complains
about the missing soft-float support if no other flags are passed via
"-Wl,..." to the linker. So we have to use "compile_object" instead of
"compile_prog" for this check.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210525142032.156989-1-thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
configure