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
authorKarl Williamson <khw@cpan.org>
Tue, 21 Jan 2020 16:38:06 +0000 (09:38 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 21 Jan 2020 16:42:07 +0000 (09:42 -0700)
This had a test for gcc, which also applies to g++, and it was causing
load failures on solaris built with g++.

Thanks to Dagfinn Ilmari MannsÃ¥ker for diagnosing this problem.

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"*)