diff options
| author | Thomas Huth <thuth@redhat.com> | 2021-05-25 16:20:32 +0200 |
|---|---|---|
| committer | Cornelia Huck <cohuck@redhat.com> | 2021-06-21 08:48:21 +0200 |
| commit | 3af448b38677e7be5ccda6a65e06150abd1005b6 (patch) | |
| tree | 56fa50aa8a88ee6f25874bbd721e16a26dae3c2b | |
| parent | 463e50da8bf81bb3eff108e4bdd8fa7aadb12f4c (diff) | |
| download | focaccia-qemu-3af448b38677e7be5ccda6a65e06150abd1005b6.tar.gz focaccia-qemu-3af448b38677e7be5ccda6a65e06150abd1005b6.zip | |
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>
| -rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure index 262ab71802..931f6ac01a 100755 --- a/configure +++ b/configure @@ -5424,7 +5424,7 @@ if test "$cpu" = "s390x" ; then write_c_skeleton compile_prog "-march=z900" "" has_z900=$? - if [ $has_z900 = 0 ] || compile_prog "-march=z10" ""; then + if [ $has_z900 = 0 ] || compile_object "-march=z10 -msoft-float -Werror"; then if [ $has_z900 != 0 ]; then echo "WARNING: Your compiler does not support the z900!" echo " The s390-ccw bios will only work with guest CPUs >= z10." |