This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Detect GCC as compiler to use
authorSevan Janiyan <venture37@geeklan.co.uk>
Wed, 2 Dec 2020 19:50:37 +0000 (19:50 +0000)
committerKarl Williamson <khw@cpan.org>
Wed, 2 Dec 2020 19:57:57 +0000 (12:57 -0700)
On Illumos based distributions GCC is likely the compiler available on the system.
Change tested on SmartOS

hints/solaris_2.sh

index c613406..e50d9d8 100644 (file)
@@ -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