This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
hints/solaris_2.sh: g++ needs same treatment as gcc
[perl5.git] / hints / solaris_2.sh
index c68fbb0..c613406 100644 (file)
@@ -585,7 +585,7 @@ EOM
                fi
            fi
            case "${cc:-cc} -v 2>/dev/null" in
-           *gcc*)
+           *gcc*|*g++*)
                echo 'int main() { return 0; }' > try.c
                case "`${cc:-cc} $ccflags -mcpu=v9 -m64 -S try.c 2>&1 | grep 'm64 is not supported by this configuration'`" in
                *"m64 is not supported"*)