This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Sun c99 doesn't like bare -O.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 5 Aug 2014 14:49:31 +0000 (10:49 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 5 Aug 2014 16:42:39 +0000 (12:42 -0400)
hints/solaris_2.sh

index 5266020..b47b439 100644 (file)
@@ -359,6 +359,13 @@ EOM
                        d_attribute_pure='undef'
                        d_attribute_unused='undef'
                        d_attribute_warn_unused_result='undef'
+                       # The c99 doesn't like bare -O.
+                       case "$cc" in
+                       *c99)   case "$optimize" in
+                               ''|-O) optimize=-O3 ;;
+                               esac
+                               ;;
+                       esac
                        ;;
                esac
        fi