summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-09-02 16:23:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-09-02 16:23:02 +0000
commite1cf89ea765d742a4b7b9f0301d22970c66d1b8e (patch)
tree50593e11c00b2f133220b21feff7ef1960952e13 /hints/solaris_2.sh
parent96ab38982b940ec3756eb2d06a5d6ca39904d2fd (diff)
downloadperl-e1cf89ea765d742a4b7b9f0301d22970c66d1b8e.tar.gz
Make certain cc is set before trying to run it.
p4raw-id: //depot/perl@7007
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 8fe516a85e..e8175f241a 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -45,7 +45,9 @@ case "$archname" in
;;
esac
-ccversion="`${cc:-cc} -V 2>&1|head -1|sed 's/^cc: //'`"
+cc=${cc:-cc}
+
+ccversion="`$cc -V 2>&1|head -1|sed 's/^cc: //'`"
case "$ccversion" in
*WorkShop*) ccname=workshop ;;
*) ccversion='' ;;