OpenSTEP has gcc 2.7.2.1 which recognizes but does not implement
Jarkko Hietaniemi [Tue, 26 Jun 2001 03:01:01 +0000 (03:01 +0000)]
the -dM flag, from Daniel Ashton <jdashton@AshtonFam.org>.

p4raw-id: //depot/perl@10947

ext/Errno/Errno_pm.PL

index 575e77c..93790af 100644 (file)
@@ -27,7 +27,11 @@ sub process_file {
             warn "Cannot open '$file'";
             return;
        }     
-    } elsif ($Config{gccversion} ne '') { 
+    } elsif ($Config{gccversion} ne '' &&
+             # OpenSTEP has gcc 2.7.2.1 which recognizes but
+            # doesn't implement the -dM flag.
+            $^O ne 'next4'
+            ) { 
        # With the -dM option, gcc outputs every #define it finds
        unless(open(FH,"$Config{cc} -E -dM $Config{cppflags} $file |")) {
             warn "Cannot open '$file'";