pre-clear $ENV{"CFLAGS"} to prevent the default autoconf "-g -O2" string
authorshort <>
Mon, 24 Mar 2003 00:07:00 +0000 (00:07 +0000)
committershort <>
Mon, 24 Mar 2003 00:07:00 +0000 (00:07 +0000)
AutoGen.pm

index ec5c50e..af3ffe1 100644 (file)
@@ -440,6 +440,9 @@ my($class,%options)=@_;
 
        return if $Options{"ARGV_dist"};
 
 
        return if $Options{"ARGV_dist"};
 
+       # 'configure' defaults to CFLAGS '-g -O2' but our --enable-maintainer-mode
+       # should force '-ggdb3'
+       $ENV{"CFLAGS"}||="";
        # shared/static switching cannot be based on maintainer-mode in configure
        _system(qw(./configure --enable-maintainer-mode),
                        ($Options{"want-libtoolize"} && qw(--enable-shared --disable-static)),
        # shared/static switching cannot be based on maintainer-mode in configure
        _system(qw(./configure --enable-maintainer-mode),
                        ($Options{"want-libtoolize"} && qw(--enable-shared --disable-static)),