X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fsolaris_2.sh;h=e8175f241a180d1936e52c96f77a265b704e0738;hb=6ac94dd724117eebd4840593a6c1fc07770a26fb;hp=22a0324ebf66c1a264aebbf90fdc3e250b60e71f;hpb=6b356c8efb963846940ef92952cf77e5b86bd65e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 22a0324..e8175f2 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|sed 's/^cc: //'`" +cc=${cc:-cc} + +ccversion="`$cc -V 2>&1|head -1|sed 's/^cc: //'`" case "$ccversion" in *WorkShop*) ccname=workshop ;; *) ccversion='' ;;