Blob Blame History Raw
%Config::Config is read-only.
We'll set compiler flags to distribution-wide defaults anyway.

--- Makefile.PL
+++ Makefile.PL
@@ -1,13 +1,6 @@
 # $Id: Makefile.PL,v 1.1 1995/01/23 04:46:12 ilya Exp $
 use strict;
 use Config '%Config';
-
-BEGIN {	# Need to do before ExtUtils::MakeMaker caches them
-  if ($Config{gccversion} and grep /^OPTIMIZE=.*(?<![^\s=])-g(?!\S)/,  @ARGV) {		# XXXX Bug in Perl configuration: these should be in {optimize} only
-    $Config{"${_}flags"} =~ s/(?<!\S)-(s|O(\d+|s|fast)?)(?!\S)//g for qw(cc cpp ld lddl);
-  }							# gnukfreebsd(lddl) cygwin strawberry openbsd netbsd linux(lddl)
-}
-
 use ExtUtils::MakeMaker;
 
 BEGIN {unshift @INC, 'utils'}