From a6f7d73f341c545438acaeab8b5cb0c5156105b7 Mon Sep 17 00:00:00 2001 From: short <> Date: Mon, 24 Mar 2003 00:07:00 +0000 Subject: [PATCH] pre-clear $ENV{"CFLAGS"} to prevent the default autoconf "-g -O2" string --- AutoGen.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AutoGen.pm b/AutoGen.pm index ec5c50e..af3ffe1 100644 --- a/AutoGen.pm +++ b/AutoGen.pm @@ -440,6 +440,9 @@ my($class,%options)=@_; 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)), -- 1.8.3.1