From 4149e877c4df97ddc835e3246a18566a3b4e9e70 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Fri, 9 Mar 2018 12:14:06 -0500 Subject: [PATCH] configure: Drop ancient Solaris 9 and earlier support Solaris 9 was released in 2002, its successor Solaris 10 was released in 2005, and Solaris 9 was end-of-lifed in 2014. Nobody has stepped forward to express interest in supporting Solaris of any flavour, so removing support for the ancient versions seems uncontroversial. In particular, this allows us to remove a use of 'uname' in configure that won't work if you're cross-compiling. Backports commit 91939262ffcd3c85ea6a4793d3029326eea1d649 from qemu --- qemu/configure | 21 --------------------- qemu/include/fpu/softfloat.h | 4 ---- 2 files changed, 25 deletions(-) diff --git a/qemu/configure b/qemu/configure index 7f860ddf..1da64d52 100755 --- a/qemu/configure +++ b/qemu/configure @@ -429,23 +429,6 @@ SunOS) solaris="yes" make="${MAKE-gmake}" ld="gld" - needs_libsunmath="no" - solarisrev=$(uname -r | cut -f2 -d.) - if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then - if test "$solarisrev" -le 9 ; then - if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then - needs_libsunmath="yes" - QEMU_CFLAGS="-I/opt/SUNWspro/prod/include/cc $QEMU_CFLAGS" - LDFLAGS="-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib $LDFLAGS" - LIBS="-lsunmath $LIBS" - else - error_exit "QEMU will not link correctly on Solaris 8/X86 or 9/x86 without" \ - "libsunmath from the Sun Studio compilers tools, due to a lack of" \ - "C99 math features in libm.so in Solaris 8/x86 and Solaris 9/x86" \ - "Studio 11 can be downloaded from www.sun.com." - fi - fi - fi # needed for CMSG_ macros in sys/socket.h QEMU_CFLAGS="-D_XOPEN_SOURCE=600 $QEMU_CFLAGS" # needed for TIOCWIN* defines in termios.h @@ -1345,10 +1328,6 @@ fi if test "$solaris" = "yes" ; then echo "CONFIG_SOLARIS=y" >> $config_host_mak - echo "CONFIG_SOLARIS_VERSION=$solarisrev" >> $config_host_mak - if test "$needs_libsunmath" = "yes" ; then - echo "CONFIG_NEEDS_LIBSUNMATH=y" >> $config_host_mak - fi fi if test "$static" = "yes" ; then echo "CONFIG_STATIC=y" >> $config_host_mak diff --git a/qemu/include/fpu/softfloat.h b/qemu/include/fpu/softfloat.h index ddf73c6c..86e07e51 100644 --- a/qemu/include/fpu/softfloat.h +++ b/qemu/include/fpu/softfloat.h @@ -82,10 +82,6 @@ this code that are retained. #ifndef SOFTFLOAT_H #define SOFTFLOAT_H -#if defined(CONFIG_SOLARIS) && defined(CONFIG_NEEDS_LIBSUNMATH) -#include -#endif - #include "unicorn/platform.h" #include "config-host.h" #include "qemu/osdep.h"