Author: timbo
Date: Thu Dec  8 17:31:38 2005
New Revision: 2302

Modified:
   dbi/trunk/Changes
   dbi/trunk/Makefile.PL
Log:
Fixed Makefile.PL options for gcc bug introduced in 1.49, reported by Eric 
Rybski.


Modified: dbi/trunk/Changes
==============================================================================
--- dbi/trunk/Changes   (original)
+++ dbi/trunk/Changes   Thu Dec  8 17:31:38 2005
@@ -4,6 +4,10 @@ DBI::Changes - List of significant chang
 
 =cut
 
+=head2 Changes in DBI 1.50 (svn rev XXXX),   XXX
+
+  Fixed Makefile.PL options for gcc bug introduced in 1.49.
+
 =head2 Changes in DBI 1.49 (svn rev 2287),   29th November 2005
 
   Fixed assorted attribute handling bugs in DBD::Proxy.

Modified: dbi/trunk/Makefile.PL
==============================================================================
--- dbi/trunk/Makefile.PL       (original)
+++ dbi/trunk/Makefile.PL       Thu Dec  8 17:31:38 2005
@@ -143,13 +143,13 @@ if (my $gccversion = $Config{gccversion}
     warn "WARNING: Your GNU C $gccversion compiler is very old. Please upgrade 
it and rebuild perl.\n"
        if $gccversion =~ m/^\D*(1|2\.[1-8])/;
     $gccversion =~ s/[^\d\.]//g; # just a number please
-    $opts{CCFLAGS} .= ' -W -Wall -Wpointer-arith -Wbad-function-cast';
-    $opts{CCFLAGS} .= ' -Wno-comment -Wno-sign-compare -Wno-cast-qual';
-    $opts{CCFLAGS} .= ' -Wdisabled-optimization -Wmissing-noreturn 
-Wno-unused-parameter'
+    $opts{DEFINE} .= ' -W -Wall -Wpointer-arith -Wbad-function-cast';
+    $opts{DEFINE} .= ' -Wno-comment -Wno-sign-compare -Wno-cast-qual';
+    $opts{DEFINE} .= ' -Wdisabled-optimization -Wmissing-noreturn 
-Wno-unused-parameter'
         if $gccversion ge "3.0";
     if ($is_developer && $::opt_g) {
-        $opts{CCFLAGS} .= ' -DPERL_GCC_PEDANTIC -ansi -pedantic' if 
$gccversion ge "3.0";
-        $opts{CCFLAGS} .= ' -Wmissing-prototypes';
+        $opts{DEFINE} .= ' -DPERL_GCC_PEDANTIC -ansi -pedantic' if $gccversion 
ge "3.0";
+        $opts{DEFINE} .= ' -Wmissing-prototypes';
     }
 }
 

Reply via email to