summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
authorSevan Janiyan <venture37@geeklan.co.uk>2020-12-02 19:50:37 +0000
committerKarl Williamson <khw@cpan.org>2020-12-02 12:57:57 -0700
commit800aab6349e0a8fc07de4c691a51468570c2cd4b (patch)
tree7295eb9bb24ce78974a2b604bd41076878ab4a97 /hints/solaris_2.sh
parent0a0027ab22794b3826f35e6a97e9c42da4a9e72a (diff)
downloadperl-800aab6349e0a8fc07de4c691a51468570c2cd4b.tar.gz
Detect GCC as compiler to use
On Illumos based distributions GCC is likely the compiler available on the system. Change tested on SmartOS
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index c6134060f7..e50d9d8323 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -90,7 +90,8 @@ END
`
case "$cc" in
-'') for i in `ls -r /opt/*studio*/bin/cc` /opt/SUNWspro/bin/cc
+'') for i in `ls -r /opt/*studio*/bin/cc` /opt/SUNWspro/bin/cc \
+ `which gcc`
do
if test -f "$i"; then
cc=$i