lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r899480 - /lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm
Date Thu, 14 Jan 2010 23:53:23 GMT
Author: marvin
Date: Thu Jan 14 23:53:22 2010
New Revision: 899480

URL: http://svn.apache.org/viewvc?rev=899480&view=rev
Log:
Always build under C99 with GCC.

Modified:
    lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm

Modified: lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm?rev=899480&r1=899479&r2=899480&view=diff
==============================================================================
--- lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm (original)
+++ lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm Thu Jan 14 23:53:22 2010
@@ -70,6 +70,16 @@
         $extra_ccflags .= '/TP ';
     }
 
+    # Tell GCC explicitly to run with C99 compatability.
+    my $gcc_version = $ENV{REAL_GCC_VERSION} || $Config{gccversion};
+    if ( defined $gcc_version ) {
+        $gcc_version =~ /^(\d+(\.\d+)?)/ or die "no match";
+        $gcc_version = $1;
+        if ($extra_ccflags !~ m/-std=c99/) {
+            $extra_ccflags .= "-std=c99 ";
+        }  
+    }
+
     return $extra_ccflags;
 }
 



Mime
View raw message