diff options
author | Guido van Rossum <guido@python.org> | 1997-07-18 23:29:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-18 23:29:09 (GMT) |
commit | b5875b642e13a9d5b1bed4141ace45f0ad9e4dde (patch) | |
tree | 4e188e27f73edd34b7964289ffa357ecfb9c8022 /configure.in | |
parent | 61c270345c1b105de3463f315c5736484a95b0ac (diff) | |
download | cpython-b5875b642e13a9d5b1bed4141ace45f0ad9e4dde.zip cpython-b5875b642e13a9d5b1bed4141ace45f0ad9e4dde.tar.gz cpython-b5875b642e13a9d5b1bed4141ace45f0ad9e4dde.tar.bz2 |
Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index f2510ce..e91199b 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 |