diff options
author | nijtmans <nijtmans> | 2008-11-12 00:31:43 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-11-12 00:31:43 (GMT) |
commit | 39004ac11e0fbfb55fc1890b75012eeef0ad530d (patch) | |
tree | 6d8efbcc528b2c22dc37b52f175fafe75009db3b /unix/configure | |
parent | 266da04f1825ce88dda184f559448bed8890db38 (diff) | |
download | tcl-39004ac11e0fbfb55fc1890b75012eeef0ad530d.zip tcl-39004ac11e0fbfb55fc1890b75012eeef0ad530d.tar.gz tcl-39004ac11e0fbfb55fc1890b75012eeef0ad530d.tar.bz2 |
Use -O2 as gcc optimization compiler flag, and get
rid of -Wno-implicit-int for UNIX
Diffstat (limited to 'unix/configure')
-rwxr-xr-x | unix/configure | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/unix/configure b/unix/configure index 3e4bf79..7f0869a 100755 --- a/unix/configure +++ b/unix/configure @@ -6255,13 +6255,16 @@ fi ECHO_VERSION='`echo ${VERSION}`' TCL_LIB_VERSIONS_OK=ok CFLAGS_DEBUG=-g - CFLAGS_OPTIMIZE=-O if test "$GCC" = yes; then - CFLAGS_WARNING="-Wall -Wno-implicit-int" + CFLAGS_OPTIMIZE="-O2" + CFLAGS_WARNING="-Wall" else - CFLAGS_WARNING="" + + CFLAGS_OPTIMIZE=-O + CFLAGS_WARNING="" + fi TCL_NEEDS_EXP_FILE=0 @@ -6739,6 +6742,7 @@ fi else CFLAGS="$CFLAGS -z" + CFLAGS_WARNING="$CFLAGS_WARNING +w1 +W392000" # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc #CFLAGS="$CFLAGS +DAportable" SHLIB_CFLAGS="+z" |