This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Do not add -Ae for gcc.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Feb 2000 20:11:59 +0000 (20:11 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Feb 2000 20:11:59 +0000 (20:11 +0000)
p4raw-id: //depot/cfgperl@5328

hints/hpux.sh

index dc1c3d8..ae905b3 100644 (file)
@@ -98,6 +98,7 @@ EOM
     #optimize='+O3'
     #cccdlflags='+z +O2'
     optimize='-O'
+    cc=cc
     ;;
 esac
 
@@ -176,7 +177,11 @@ esac'
            echo "(Changing from strict ANSI compilation to extended because of 64-bitness)"
            ccflags=`echo $ccflags|sed 's@ -Aa @ -Ae @'`
            ;;
-    *) ccflags="$ccflags -Ae" ;;
+    *) case `$cc -v 2>&1`"" in
+       *gcc*) ;;
+       *) ccflags="$ccflags -Ae" ;;
+       esac
+       ;;
     esac    
 
     set `echo " $libswanted " | sed -e 's@ dl @ @'`
@@ -363,7 +368,11 @@ case "$uselargefiles" in
            echo "(Changing from strict ANSI compilation to extended because of large files)"
            ccflags=`echo $ccflags|sed 's@ -Aa @ -Ae @'`
            ;;
-       *)  ccflags="$ccflags -Ae" ;;
+       *)  case `$cc -v 2>&1`"" in
+           *gcc*) ;;
+           *) ccflags="$ccflags -Ae" ;;
+           esac
+           ;; 
        esac    
        ;;
 esac