You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2009/12/30 04:25:18 UTC
svn commit: r894537 - /lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm
Author: marvin
Date: Wed Dec 30 03:25:18 2009
New Revision: 894537
URL: http://svn.apache.org/viewvc?rev=894537&view=rev
Log:
Update debugging GCC flags to use C99 rather than C89. The driver for this
change is the Mac OS X header libkern/OSAtomic.h, which exports "inline"
functions and errors out under "-ansi -peduntic", causing an undesirable
fallback to pthread-based atomic emulation under the atomics patch I'm about
to submit.
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=894537&r1=894536&r2=894537&view=diff
==============================================================================
--- lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm (original)
+++ lucene/lucy/trunk/perl/buildlib/Lucy/Build.pm Wed Dec 30 03:25:18 2009
@@ -58,8 +58,7 @@
if ( defined $gcc_version ) {
$gcc_version =~ /^(\d+(\.\d+)?)/ or die "no match";
$gcc_version = $1;
- $extra_ccflags .= "-DPERL_GCC_PEDANTIC -ansi -pedantic -Wall "
- . "-std=c89 -Wno-long-long ";
+ $extra_ccflags .= "-DPERL_GCC_PEDANTIC -std=c99 -pedantic -Wall ";
$extra_ccflags .= "-Wextra " if $gcc_version >= 3.4; # correct
$extra_ccflags .= "-Wno-variadic-macros "
if $gcc_version > 3.4; # at least not on gcc 3.4