From: Guido van Rossum Date: Fri, 18 Jul 1997 23:29:09 +0000 (+0000) Subject: Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc. X-Git-Tag: v1.5a3~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5875b642e13a9d5b1bed4141ace45f0ad9e4dde;p=python Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc. --- diff --git a/configure.in b/configure.in index f2510ceda7..e91199b3d9 100644 --- a/configure.in +++ b/configure.in @@ -98,7 +98,13 @@ fi AC_SUBST(OPT) if test -z "$OPT" then - case $ac_sys_system in + case $GCC in + yes) + case $ac_cv_prog_cc_g in + yes) OPT="-g -O2";; + *) OPT="-O2";; + esac + ;; *) OPT="-O";; esac fi