[commit: ghc] master: fix build failure on Solaris 10 due to RANLIB being set to ':' by configure (#8795) (5c6ced5)
git at git.haskell.org
git at git.haskell.org
Wed Feb 19 22:34:36 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/5c6ced556a989e7fccfa2d4adc6f6bbe538a8e6c/ghc
>---------------------------------------------------------------
commit 5c6ced556a989e7fccfa2d4adc6f6bbe538a8e6c
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>
>---------------------------------------------------------------
5c6ced556a989e7fccfa2d4adc6f6bbe538a8e6c
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