This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Since HP cc is strict c89, use -std=c89 with gcc.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 21 Nov 2014 01:19:27 +0000 (20:19 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 21 Nov 2014 01:30:48 +0000 (20:30 -0500)
Mitigates the downside of 0d55a45a a bit.

hints/hpux.sh

index 39150be..8062d8f 100644 (file)
@@ -76,6 +76,10 @@ case "$prefix" in
 case `$cc -v 2>&1`"" in
     *gcc*)  ccisgcc="$define"
            ccflags="$cc_cppflags"
+
+           # Since the HP cc is strict C89, let's follow suit.
+           ccflags="$ccflags -std=c89"
+
            if [ "X$gccversion" = "X" ]; then
                # Done too late in Configure if hinted
                gccversion=`$cc -dumpversion`