[commit: packages/primitive] ghc-head: fix compilation on Solaris 10 with GNU C 3.4.3 (ad71f28)

git at git.haskell.org git at git.haskell.org
Wed Feb 19 22:24:44 UTC 2014


Repository : ssh://git@git.haskell.org/primitive

On branch  : ghc-head
Link       : http://git.haskell.org/packages/primitive.git/commitdiff/ad71f2807f10b2920863150d57374771d8ce443a

>---------------------------------------------------------------

commit ad71f2807f10b2920863150d57374771d8ce443a
Author: Karel Gardas <karel.gardas at centrum.cz>
Date:   Sun Feb 9 22:11:47 2014 +0100

    fix compilation on Solaris 10 with GNU C 3.4.3
    
    This patch fixes compilation on Solaris 10 platform which provides
    GNU C 3.4.3 by default by removing unsupported -ftree-vectorize option.
    This may penalize Solaris 11, where GNU C 4.6.2 is provided but current
    cabal does not support OSes version detection and Solaris 10 is still
    supported (by Oracle) and will be at least till 2021 so let's support it
    too.


>---------------------------------------------------------------

ad71f2807f10b2920863150d57374771d8ce443a
 primitive.cabal |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/primitive.cabal b/primitive.cabal
index b819e03..666a8f2 100644
--- a/primitive.cabal
+++ b/primitive.cabal
@@ -44,7 +44,9 @@ Library
   Install-Includes: primitive-memops.h
   includes: primitive-memops.h
   c-sources: cbits/primitive-memops.c
-  cc-options: -O3 -ftree-vectorize -fomit-frame-pointer -Wall
+  cc-options: -O3 -fomit-frame-pointer -Wall
+  if !os(solaris)
+      cc-options: -ftree-vectorize
   if arch(i386) || arch(x86_64)
       cc-options: -msse2
 



More information about the ghc-commits mailing list