[commit: ghc] ghc-7.8: fix build failure on Solaris 10 due to RANLIB being set to ':' by configure (#8795) (b4eb13d)

git at git.haskell.org git at git.haskell.org
Thu Feb 20 12:01:08 UTC 2014


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

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/b4eb13d6a42211681774cc859decf9ab5e64ba7f/ghc

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

commit b4eb13d6a42211681774cc859decf9ab5e64ba7f
Author: Karel Gardas <karel.gardas at centrum.cz>
Date:   Mon Feb 17 10:24:05 2014 +0100

    fix build failure on Solaris 10 due to RANLIB being set to ':' by configure (#8795)
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>
    
    (cherry picked from commit 5c6ced556a989e7fccfa2d4adc6f6bbe538a8e6c)


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

b4eb13d6a42211681774cc859decf9ab5e64ba7f
 aclocal.m4 |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/aclocal.m4 b/aclocal.m4
index a30fa4f..c2a7ba2 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1137,6 +1137,16 @@ AC_DEFUN([FP_PROG_AR_NEEDS_RANLIB],[
         esac
     fi
 
+    # workaround for AC_PROG_RANLIB which sets RANLIB to `:' when
+    # ranlib is missing on the target OS. The problem is that
+    # ghc-cabal cannot execute `:' which is a shell built-in but can
+    # execute `true' which is usually simple program supported by the
+    # OS.
+    # Fixes #8795
+    if test "$RANLIB" = ":"
+    then
+        RANLIB="true"
+    fi
     REAL_RANLIB_CMD="$RANLIB"
     if test $fp_cv_prog_ar_needs_ranlib = yes
     then



More information about the ghc-commits mailing list