PATCH: Building a gcc-3.3/libstdc++-v3 cross compiler for *-*-solaris2.*

Brad Spencer spencer@infointeractive.com
Wed May 21 16:17:00 GMT 2003


Hello.  Attached is a patch for the gcc-3.3 release that fixes a
problem encountered when building (at least) sparc-sun-solaris2.8
cross compilers on i686-pc-linux-gnu.  I have patched gcc-3.1 and
gcc-3.2 similarly in the past.

See http://gcc.gnu.org/ml/libstdc++/2002-07/msg00060.html for some
history.

Thanks!
        
-- 
------------------------------------------------------------------
Brad Spencer - spencer@infointeractive.com - "It's quite nice..."
Systems Architect | InfoInterActive Corp. | A Canadian AOL Company
-------------- next part --------------
--- configure.in.orig	Thu May  1 19:20:08 2003
+++ configure.in	Wed May 21 13:01:16 2003
@@ -265,6 +265,23 @@
       AC_DEFINE(HAVE_SINHF)
       AC_DEFINE(HAVE_SINHL)
       ;;
+    *-solaris2.5)
+      os_include_dir="os/solaris/solaris2.5"
+      AC_DEFINE(HAVE_HYPOT)
+      ;;
+    *-solaris2.6)
+      os_include_dir="os/solaris/solaris2.6"
+      AC_DEFINE(HAVE_HYPOT)
+      ;;
+    *-solaris2.7)
+      os_include_dir="os/solaris/solaris2.7"
+      AC_DEFINE(HAVE_HYPOT)
+      ;;
+    *-solaris2.8)
+      # 2.7 and 2.8 are the same for now
+      os_include_dir="os/solaris/solaris2.7"
+      AC_DEFINE(HAVE_HYPOT)
+      ;;
     *)
       os_include_dir="os/newlib"
       AC_DEFINE(HAVE_HYPOT)
@@ -273,6 +290,18 @@
 
   case "$target" in
     *-mingw32*)
+      ;;
+    *-solaris*)
+      # This is a subset of the '*' case below, taken from a native
+      # build of sparc64-sun-solaris2.8
+      AC_DEFINE(HAVE_STRTOF)
+      AC_DEFINE(HAVE_STRTOLD)
+      AC_DEFINE(HAVE_MMAP)
+ 
+      AC_DEFINE(HAVE_COPYSIGN)
+      AC_DEFINE(HAVE_ISNAN)
+      AC_DEFINE(HAVE_ISNANF)
+      AC_DEFINE(HAVE_MODFF)
       ;;
     *-windiss*)
       AC_DEFINE(HAVE_ACOSF)


More information about the Libstdc++ mailing list