Apostolos Syropoulos via Glasgow-haskell-users
<glasgow-haskell-users@haskell.org> writes:

>  Hello,
>
> I tried to compile the latest bits on OpenIndiana (the open version of 
> Solaris) and
> compilation never starts because:
>
Can you try applying the attached patch?

Cheers,

- Ben

Attachment: signature.asc
Description: PGP signature

>From d7c5ec0c28a45ea22c5901a152cbc9123a07564c Mon Sep 17 00:00:00 2001
From: Ben Gamari <b...@smart-cactus.org>
Date: Thu, 8 Mar 2018 15:26:09 -0500
Subject: [PATCH] configure: Accept version suffix in solaris name

OpenIndiana apparently reports a triple of i386-pc-solaris2.11.
---
 aclocal.m4 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index c02c1d109f..91cdd40b13 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1976,7 +1976,7 @@ AC_DEFUN([GHC_CONVERT_OS],[
         $3="linux"
         ;;
       # As far as I'm aware, none of these have relevant variants
-      freebsd|netbsd|openbsd|dragonfly|hpux|linuxaout|kfreebsdgnu|freebsd2|solaris2|mingw32|darwin|gnu|nextstep2|nextstep3|sunos4|ultrix|haiku)
+      freebsd|netbsd|openbsd|dragonfly|hpux|linuxaout|kfreebsdgnu|freebsd2|mingw32|darwin|gnu|nextstep2|nextstep3|sunos4|ultrix|haiku)
         $3="$1"
         ;;
       aix*) # e.g. powerpc-ibm-aix7.1.3.0
@@ -1985,6 +1985,9 @@ AC_DEFUN([GHC_CONVERT_OS],[
       darwin*) # e.g. aarch64-apple-darwin14
         $3="darwin"
         ;;
+      solaris2*)
+        $3="solaris2"
+        ;;
       freebsd*) # like i686-gentoo-freebsd7
                 #      i686-gentoo-freebsd8
                 #      i686-gentoo-freebsd8.2
-- 
2.16.2

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users

Reply via email to